[Neo-report] r1940 gregory - /trunk/neo/neoctl/app.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 16 17:07:22 CET 2010


Author: gregory
Date: Tue Mar 16 17:07:19 2010
New Revision: 1940

Log:
Align columns displayed by neoctl tool.

Modified:
    trunk/neo/neoctl/app.py

Modified: trunk/neo/neoctl/app.py
==============================================================================
--- trunk/neo/neoctl/app.py [iso-8859-1] (original)
+++ trunk/neo/neoctl/app.py [iso-8859-1] Tue Mar 16 17:07:19 2010
@@ -55,10 +55,10 @@
         return bin(value)
 
     def formatRowList(self, row_list):
-        return '\n'.join('%s | %s' % (offset,
-                                      ''.join('%s - %s |' % (dump(uuid), state)
-                                       for (uuid, state) in cell_list))
-                         for (offset, cell_list) in row_list)
+        return '\n'.join('%03d | %s' % (offset,
+            ''.join('%s - %s |' % (dump(uuid), state)
+            for (uuid, state) in cell_list))
+            for (offset, cell_list) in row_list)
 
     def formatNodeList(self, node_list):
         if not node_list:





More information about the Neo-report mailing list