[rhmessaging-commits] rhmessaging commits: r1626 - mgmt/cumin/python/wooly.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Jan 30 10:02:18 EST 2008


Author: justi9
Date: 2008-01-30 10:02:18 -0500 (Wed, 30 Jan 2008)
New Revision: 1626

Modified:
   mgmt/cumin/python/wooly/__init__.py
   mgmt/cumin/python/wooly/resources.py
Log:
Improvements to debug printing.



Modified: mgmt/cumin/python/wooly/__init__.py
===================================================================
--- mgmt/cumin/python/wooly/__init__.py	2008-01-29 21:57:51 UTC (rev 1625)
+++ mgmt/cumin/python/wooly/__init__.py	2008-01-30 15:02:18 UTC (rev 1626)
@@ -312,7 +312,7 @@
         print self
 
         for key, value in sorted(self.__dict__.items()):
-            print "    %-25s %s" % (key + ":", value)
+            print "    %-30s %s" % (key + ":", value)
 
     def __repr__(self):
         return "%s('%s')" % (self.__class__.__name__, self.path())

Modified: mgmt/cumin/python/wooly/resources.py
===================================================================
--- mgmt/cumin/python/wooly/resources.py	2008-01-29 21:57:51 UTC (rev 1625)
+++ mgmt/cumin/python/wooly/resources.py	2008-01-30 15:02:18 UTC (rev 1626)
@@ -22,6 +22,9 @@
         
         return self.strings.get(key)
 
+    def __repr__(self):
+        return "%s('%s')" % (self.__class__.__name__, self.path)
+
 def parse_catalog_file(file):
     strings = dict()
     key = None




More information about the rhmessaging-commits mailing list