summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 613982d)
raw | patch | inline | side by side (parent: 613982d)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 30 Jul 2001 00:04:48 +0000 (00:04 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 30 Jul 2001 00:04:48 +0000 (00:04 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@143 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup-admin | patch | blob | history |
diff --git a/roundup-admin b/roundup-admin
index 51a5e0eeefbe52eea6f8257007f0e705368562b3..de01109ee44e030e804be0514614fa0c5ddd589c 100755 (executable)
--- a/roundup-admin
+++ b/roundup-admin
#! /usr/bin/python
-# $Id: roundup-admin,v 1.4 2001-07-29 07:01:39 richard Exp $
+# $Id: roundup-admin,v 1.5 2001-07-30 00:04:48 richard Exp $
import sys
if int(sys.version[0]) < 2:
template = backend = ''
while not instance_home:
instance_home = raw_input('Enter instance home: ').strip()
- # TODO: list the templates
- while not template:
- template = raw_input('Select template: ').strip()
- # TODO: list the backends
- while not backend:
- backend = raw_input('Select backend: ').strip()
+
+ # select template
+ import roundup.templates
+ templates = roundup.templates.listTemplates()
+ print 'Templates:', ', '.join(templates)
+ template = ''
+ while template not in templates:
+ template = raw_input('Select template [classic]: ').strip()
+ if not template:
+ template = 'classic'
+
+ import roundup.backends
+ backends = roundup.backends.__all__
+ backend = ''
+ while backend not in backends:
+ backend = raw_input('Select backend [anydbm]: ').strip()
+ if not backend:
+ backend = 'anydbm'
while adminpw != confirm:
adminpw = getpass.getpass('Admin Password: ')
confirm = getpass.getpass(' Confirm: ')
#
# $Log: not supported by cvs2svn $
+# Revision 1.4 2001/07/29 07:01:39 richard
+# Added vim command to all source so that we don't get no steenkin' tabs :)
+#
# Revision 1.3 2001/07/23 08:45:28 richard
# ok, so now "./roundup-admin init" will ask questions in an attempt to get a
# workable instance_home set up :)