Code

. #496360 ] table width does not work
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 31 Dec 2001 05:20:34 +0000 (05:20 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 31 Dec 2001 05:20:34 +0000 (05:20 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@486 57a73879-2fb5-44c3-a270-3262357dd7e2

CHANGES.txt
roundup-admin

index 54fff913715eeac3c79f9495010daa1baa29bd1a..021b8bf3870727c5cd67dd8775e94b2f82b0694d 100644 (file)
@@ -47,6 +47,7 @@ Fixed:
  . envelope-from is now set to the roundup-admin and not roundup itself so
    delivery reports aren't sent to roundup (thanks Patrick Ohly)
  . #495400 ] entering blanks
+ . #496360 ] table width does not work
 
 2001-11-23 - 0.3.0 
 Feature:
index f04f62786270dfa8b95255fd866c42eb69cb0b70..f42a1d560e87af93bb5da455ae4c447d28755d6f 100755 (executable)
@@ -16,7 +16,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundup-admin,v 1.58 2001-12-31 05:12:52 richard Exp $
+# $Id: roundup-admin,v 1.59 2001-12-31 05:20:34 richard Exp $
 
 # python version check
 from roundup import version_check
@@ -636,10 +636,17 @@ Command help:
         if len(args) > 1:
             prop_names = args[1].split(',')
             all_props = cl.getprops()
-            for prop_name in prop_names:
-                if not all_props.has_key(prop_name):
+            for spec in prop_names:
+                if ':' in spec:
+                    try:
+                        name, width = spec.split(':')
+                    except (ValueError, TypeError):
+                        raise UsageError, '"%s" not name:width'%spec
+                else:
+                    name = spec
+                if not all_props.has_key(name):
                     raise UsageError, '%s has no property "%s"'%(classname,
-                        prop_name)
+                        name)
         else:
             prop_names = cl.getprops().keys()
 
@@ -651,12 +658,12 @@ Command help:
                     name, width = spec.split(':')
                 except (ValueError, TypeError):
                     raise UsageError, '"%s" not name:width'%spec
-                props.append((spec, int(width)))
+                props.append((name, int(width)))
             else:
                 props.append((spec, len(spec)))
 
         # now display the heading
-        print ' '.join([name.capitalize() for name, width in props])
+        print ' '.join([name.capitalize().ljust(width) for name,width in props])
 
         # and the table data
         for nodeid in cl.list():
@@ -1012,6 +1019,9 @@ if __name__ == '__main__':
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.58  2001/12/31 05:12:52  richard
+# actually handle the advertised <cr> response to "commit y/N?"
+#
 # Revision 1.57  2001/12/31 05:12:01  richard
 # added some quoting instructions to roundup-admin
 #