Revision 840
Added by Borja Sotomayor over 13 years ago
branches/1.1/src/haizea/core/leases.py | ||
---|---|---|
1045 | 1045 |
|
1046 | 1046 |
def __repr__(self): |
1047 | 1047 |
"""Returns a string representation of the Capacity""" |
1048 |
return " | ".join("%s: %i" % (res_type,q[0]) for res_type, q in self.quantity.items())
|
|
1048 |
return " | ".join("%s: %s" % (res_type,q) for res_type, q in self.quantity.items())
|
|
1049 | 1049 |
|
1050 | 1050 |
|
1051 | 1051 |
class Timestamp(object): |
Also available in: Unified diff
When printing string representation of Capacity, include multiple instances