summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 52428b1)
raw | patch | inline | side by side (parent: 52428b1)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 15 Dec 2001 23:09:23 +0000 (23:09 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sat, 15 Dec 2001 23:09:23 +0000 (23:09 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@467 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup-admin | patch | blob | history |
diff --git a/roundup-admin b/roundup-admin
index 3bfaed19d413ef010c29503cfde8a610c9700ce0..2a4162e98565976e44e6abcc33b148dd980c62fc 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.53 2001-12-13 00:20:00 richard Exp $
+# $Id: roundup-admin,v 1.54 2001-12-15 23:09:23 richard Exp $
# python version check
from roundup import version_check
-import string, os, getpass, getopt, re, UserDict
+import sys, os, getpass, getopt, re, UserDict
try:
import csv
except ImportError:
if len(args) < 2:
raise UsageError, 'Not enough arguments supplied'
propname = args[0]
- designators = string.split(args[1], ',')
+ designators = args[1].split(',')
l = []
for designator in designators:
# decode the node designator
raise UsageError, 'Not enough arguments supplied'
from roundup import hyperdb
- designators = string.split(args[0], ',')
+ designators = args[0].split(',')
props = {}
for prop in args[1:]:
if prop.find('=') == -1:
props.append((spec, len(spec)))
# now display the heading
- print ' '.join([string.capitalize(name) for name, width in props])
+ print ' '.join([name.capitalize() for name, width in props])
# and the table data
for nodeid in cl.list():
'''
if len(args) < 1:
raise UsageError, 'Not enough arguments supplied'
- designators = string.split(args[0], ',')
+ designators = args[0].split(',')
for designator in designators:
try:
classname, nodeid = roundupdb.splitDesignator(designator)
'''
if len(args) < 2:
raise UsageError, 'Not enough arguments supplied'
- classes = string.split(args[0], ',')
+ classes = args[0].split(',')
dir = args[1]
# use the csv parser if we can - it's faster
except KeyError:
raise UsageError, 'no such class "%s"'%classname
f = open(os.path.join(dir, classname+'.csv'), 'w')
- f.write(string.join(cl.properties.keys(), ':') + '\n')
+ f.write(':'.join(cl.properties.keys()) + '\n')
# all nodes for this class
properties = cl.properties.items()
#
# $Log: not supported by cvs2svn $
+# Revision 1.53 2001/12/13 00:20:00 richard
+# . Centralised the python version check code, bumped version to 2.1.1 (really
+# needs to be 2.1.2, but that isn't released yet :)
+#
# Revision 1.52 2001/12/12 21:47:45 richard
# . Message author's name appears in From: instead of roundup instance name
# (which still appears in the Reply-To:)