[haizea-commit] r840 - branches/1.1/src/haizea/core

haizea-commit at mailman.cs.uchicago.edu haizea-commit at mailman.cs.uchicago.edu
Wed Oct 20 14:42:37 CDT 2010


Author: borja
Date: 2010-10-20 14:42:37 -0500 (Wed, 20 Oct 2010)
New Revision: 840

Modified:
   branches/1.1/src/haizea/core/leases.py
Log:
When printing string representation of Capacity, include multiple instances

Modified: branches/1.1/src/haizea/core/leases.py
===================================================================
--- branches/1.1/src/haizea/core/leases.py	2010-07-28 22:34:24 UTC (rev 839)
+++ branches/1.1/src/haizea/core/leases.py	2010-10-20 19:42:37 UTC (rev 840)
@@ -1045,7 +1045,7 @@
             
     def __repr__(self):
         """Returns a string representation of the Capacity"""
-        return "  |  ".join("%s: %i" % (res_type,q[0]) for res_type, q in self.quantity.items())
+        return "  |  ".join("%s: %s" % (res_type,q) for res_type, q in self.quantity.items())
             
 
 class Timestamp(object):



More information about the Haizea-commit mailing list