summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e38c149)
raw | patch | inline | side by side (parent: e38c149)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 23 Mar 2003 09:37:20 +0000 (09:37 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 23 Mar 2003 09:37:20 +0000 (09:37 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1618 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/admin.py | patch | blob | history |
diff --git a/roundup/admin.py b/roundup/admin.py
index 81004946b286b418d4e2887c6aac1153ff6501be..fd81d2dc272ea3a900833877a78028ae3299b3a1 100644 (file)
--- a/roundup/admin.py
+++ b/roundup/admin.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: admin.py,v 1.46 2003-03-23 06:07:05 richard Exp $
+# $Id: admin.py,v 1.47 2003-03-23 09:37:20 richard Exp $
'''Administration commands for maintaining Roundup trackers.
'''
for spec in prop_names:
if ':' in spec:
name, width = spec.split(':')
- if width == '':
+ if width == '':
props.append((name, len(spec)))
- else:
+ else:
props.append((name, int(width)))
else:
# this is going to be slow
maxlen = len(spec)
for nodeid in cl.list():
- curlen = len(str(cl.get(nodeid, spec)))
+ curlen = len(str(cl.get(nodeid, spec)))
if curlen > maxlen:
maxlen = curlen
- props.append((spec, maxlen))
+ props.append((spec, maxlen))
# now display the heading
print ' '.join([name.capitalize().ljust(width) for name,width in props])