summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d985cb)
raw | patch | inline | side by side (parent: 8d985cb)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 31 Dec 2001 05:20:34 +0000 (05:20 +0000) | ||
committer | richard <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 | patch | blob | history | |
roundup-admin | patch | blob | history |
diff --git a/CHANGES.txt b/CHANGES.txt
index 54fff913715eeac3c79f9495010daa1baa29bd1a..021b8bf3870727c5cd67dd8775e94b2f82b0694d 100644 (file)
--- a/CHANGES.txt
+++ b/CHANGES.txt
. 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:
diff --git a/roundup-admin b/roundup-admin
index f04f62786270dfa8b95255fd866c42eb69cb0b70..f42a1d560e87af93bb5da455ae4c447d28755d6f 100755 (executable)
--- a/roundup-admin
+++ b/roundup-admin
# 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
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()
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():
#
# $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
#