comparison roundup/admin.py @ 698:a26afb64a947

minor fix to error message
author Richard Jones <richard@users.sourceforge.net>
date Sat, 27 Apr 2002 10:07:23 +0000
parents eae9b69a0115
children 7e093cbaaa98
comparison
equal deleted inserted replaced
697:210e1ae39ab1 698:a26afb64a947
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.9 2002-03-12 22:51:47 richard Exp $ 19 # $Id: admin.py,v 1.10 2002-04-27 10:07:23 richard Exp $
20 20
21 import sys, os, getpass, getopt, re, UserDict, shlex 21 import sys, os, getpass, getopt, re, UserDict, shlex
22 try: 22 try:
23 import csv 23 import csv
24 except ImportError: 24 except ImportError:
265 265
266 # make sure the instance home can be created 266 # make sure the instance home can be created
267 parent = os.path.split(instance_home)[0] 267 parent = os.path.split(instance_home)[0]
268 if not os.path.exists(parent): 268 if not os.path.exists(parent):
269 raise UsageError, _('Instance home parent directory "%(parent)s"' 269 raise UsageError, _('Instance home parent directory "%(parent)s"'
270 'does not exist')%locals() 270 ' does not exist')%locals()
271 271
272 # select template 272 # select template
273 import roundup.templates 273 import roundup.templates
274 templates = roundup.templates.listTemplates() 274 templates = roundup.templates.listTemplates()
275 template = len(args) > 1 and args[1] or '' 275 template = len(args) > 1 and args[1] or ''
1059 tool = AdminTool() 1059 tool = AdminTool()
1060 sys.exit(tool.main()) 1060 sys.exit(tool.main())
1061 1061
1062 # 1062 #
1063 # $Log: not supported by cvs2svn $ 1063 # $Log: not supported by cvs2svn $
1064 # Revision 1.9 2002/03/12 22:51:47 richard
1065 # . #527416 ] roundup-admin uses undefined value
1066 # . #527503 ] unfriendly init blowup when parent dir
1067 # (also handles UsageError correctly now in init)
1068 #
1064 # Revision 1.8 2002/02/27 03:28:21 richard 1069 # Revision 1.8 2002/02/27 03:28:21 richard
1065 # Ran it through pychecker, made fixes 1070 # Ran it through pychecker, made fixes
1066 # 1071 #
1067 # Revision 1.7 2002/02/20 05:04:32 richard 1072 # Revision 1.7 2002/02/20 05:04:32 richard
1068 # Wasn't handling the cvs parser feeding properly. 1073 # Wasn't handling the cvs parser feeding properly.

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