comparison roundup/admin.py @ 1096:fa7df238e2d4

More cleaning up of configuration, and the "instance" -> "tracker" renaming.
author Richard Jones <richard@users.sourceforge.net>
date Tue, 10 Sep 2002 03:01:20 +0000
parents 9b910e8d987d
children c5819344714c
comparison
equal deleted inserted replaced
1095:711f2ecee20f 1096:fa7df238e2d4
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: admin.py,v 1.25 2002-09-10 00:18:20 richard Exp $ 19 # $Id: admin.py,v 1.26 2002-09-10 03:01:18 richard Exp $
20 20
21 import sys, os, getpass, getopt, re, UserDict, shlex, shutil 21 import sys, os, getpass, getopt, re, UserDict, shlex, shutil
22 try: 22 try:
23 import csv 23 import csv
24 except ImportError: 24 except ImportError:
138 print _(''' 138 print _('''
139 All commands (except help) require an instance specifier. This is just the path 139 All commands (except help) require an instance specifier. This is just the path
140 to the roundup instance you're working with. A roundup instance is where 140 to the roundup instance you're working with. A roundup instance is where
141 roundup keeps the database and configuration file that defines an issue 141 roundup keeps the database and configuration file that defines an issue
142 tracker. It may be thought of as the issue tracker's "home directory". It may 142 tracker. It may be thought of as the issue tracker's "home directory". It may
143 be specified in the environment variable ROUNDUP_INSTANCE or on the command 143 be specified in the environment variable TRACKER_HOME or on the command
144 line as "-i instance". 144 line as "-i instance".
145 145
146 A designator is a classname and a nodeid concatenated, eg. bug1, user10, ... 146 A designator is a classname and a nodeid concatenated, eg. bug1, user10, ...
147 147
148 Property values are represented as strings in command arguments and in the 148 Property values are represented as strings in command arguments and in the
252 def do_install(self, instance_home, args): 252 def do_install(self, instance_home, args):
253 '''Usage: install [template [backend [admin password]]] 253 '''Usage: install [template [backend [admin password]]]
254 Install a new Roundup instance. 254 Install a new Roundup instance.
255 255
256 The command will prompt for the instance home directory (if not supplied 256 The command will prompt for the instance home directory (if not supplied
257 through INSTANCE_HOME or the -i option). The template, backend and admin 257 through TRACKER_HOME or the -i option). The template, backend and admin
258 password may be specified on the command-line as arguments, in that 258 password may be specified on the command-line as arguments, in that
259 order. 259 order.
260 260
261 The initialise command must be called after this command in order 261 The initialise command must be called after this command in order
262 to initialise the instance's database. You may edit the instance's 262 to initialise the instance's database. You may edit the instance's
1110 except getopt.GetoptError, e: 1110 except getopt.GetoptError, e:
1111 self.usage(str(e)) 1111 self.usage(str(e))
1112 return 1 1112 return 1
1113 1113
1114 # handle command-line args 1114 # handle command-line args
1115 self.instance_home = os.environ.get('ROUNDUP_INSTANCE', '') 1115 self.instance_home = os.environ.get('TRACKER_HOME', '')
1116 # TODO: reinstate the user/password stuff (-u arg too) 1116 # TODO: reinstate the user/password stuff (-u arg too)
1117 name = password = '' 1117 name = password = ''
1118 if os.environ.has_key('ROUNDUP_LOGIN'): 1118 if os.environ.has_key('ROUNDUP_LOGIN'):
1119 l = os.environ['ROUNDUP_LOGIN'].split(':') 1119 l = os.environ['ROUNDUP_LOGIN'].split(':')
1120 name = l[0] 1120 name = l[0]

Roundup Issue Tracker: http://roundup-tracker.org/