Mercurial > p > roundup > code
comparison roundup/admin.py @ 704:54333751e98d search_indexing-0-4-2-branch
Brought search_indexing-branch up to date with latest changes in HEAD.
| author | Roche Compaan <rochecompaan@users.sourceforge.net> |
|---|---|
| date | Thu, 02 May 2002 13:09:11 +0000 |
| parents | eae9b69a0115 |
| children |
comparison
equal
deleted
inserted
replaced
| 703:8d2cb0d09da4 | 704:54333751e98d |
|---|---|
| 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.9.2.1 2002-05-02 13:09:07 rochecompaan 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.10 2002/04/27 10:07:23 richard | |
| 1065 # minor fix to error message | |
| 1066 # | |
| 1067 # Revision 1.9 2002/03/12 22:51:47 richard | |
| 1068 # . #527416 ] roundup-admin uses undefined value | |
| 1069 # . #527503 ] unfriendly init blowup when parent dir | |
| 1070 # (also handles UsageError correctly now in init) | |
| 1071 # | |
| 1064 # Revision 1.8 2002/02/27 03:28:21 richard | 1072 # Revision 1.8 2002/02/27 03:28:21 richard |
| 1065 # Ran it through pychecker, made fixes | 1073 # Ran it through pychecker, made fixes |
| 1066 # | 1074 # |
| 1067 # Revision 1.7 2002/02/20 05:04:32 richard | 1075 # Revision 1.7 2002/02/20 05:04:32 richard |
| 1068 # Wasn't handling the cvs parser feeding properly. | 1076 # Wasn't handling the cvs parser feeding properly. |
