summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17c8080)
raw | patch | inline | side by side (parent: 17c8080)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 26 May 2002 09:04:42 +0000 (09:04 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 26 May 2002 09:04:42 +0000 (09:04 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@764 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/admin.py | patch | blob | history |
diff --git a/roundup/admin.py b/roundup/admin.py
index 10b04767a39479328459023ad2d2572208270760..18c1638a7de2fd5aef8e3726efbd726abddbbf2a 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.11 2002-05-23 01:14:20 richard Exp $
+# $Id: admin.py,v 1.12 2002-05-26 09:04:42 richard Exp $
import sys, os, getpass, getopt, re, UserDict, shlex, shutil
try:
Execute the instance's initialisation function dbinit.init()
'''
# password
- if len(args) > 0:
- adminpw = args[0]
+ print args
+ if len(args) > 1:
+ adminpw = args[1]
else:
adminpw = ''
confirm = 'x'
confirm = getpass.getpass(_(' Confirm: '))
# email
- if len(args) > 1:
- adminemail = args[1]
+ if len(args) > 2:
+ adminemail = args[2]
else:
adminemail = ''
while not adminemail:
except TypeError:
raise UsageError, _('%(classname)s has no key property"')%{
'classname': link_class.classname}
- except KeyError:
- raise UsageError, _('%(classname)s has no entry "%(propname)s"')%{
- 'classname': link_class.classname, 'propname': propname}
# now do the find
try:
#
# $Log: not supported by cvs2svn $
+# Revision 1.11 2002/05/23 01:14:20 richard
+# . split instance initialisation into two steps, allowing config changes
+# before the database is initialised.
+#
# Revision 1.10 2002/04/27 10:07:23 richard
# minor fix to error message
#