Mercurial > p > roundup > code
comparison roundup/admin.py @ 1085:04a6b3bfbf23
instance_config -> config, and other related cleanups
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 09 Sep 2002 23:55:29 +0000 |
| parents | f615fbd02c18 |
| children | 9b910e8d987d |
comparison
equal
deleted
inserted
replaced
| 1084:a625adcd6254 | 1085:04a6b3bfbf23 |
|---|---|
| 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.23 2002-08-19 02:53:27 richard Exp $ | 19 # $Id: admin.py,v 1.24 2002-09-09 23:55: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: |
| 299 # install! | 299 # install! |
| 300 init.install(instance_home, template, backend) | 300 init.install(instance_home, template, backend) |
| 301 | 301 |
| 302 print _(''' | 302 print _(''' |
| 303 You should now edit the instance configuration file: | 303 You should now edit the instance configuration file: |
| 304 %(instance_config_file)s | 304 %(config_file)s |
| 305 ... at a minimum, you must set MAILHOST, MAIL_DOMAIN and ADMIN_EMAIL. | 305 ... at a minimum, you must set MAILHOST, MAIL_DOMAIN and ADMIN_EMAIL. |
| 306 | 306 |
| 307 If you wish to modify the default schema, you should also edit the database | 307 If you wish to modify the default schema, you should also edit the database |
| 308 initialisation file: | 308 initialisation file: |
| 309 %(database_config_file)s | 309 %(database_config_file)s |
| 310 ... see the documentation on customizing for more information. | 310 ... see the documentation on customizing for more information. |
| 311 ''')%{ | 311 ''')%{ |
| 312 'instance_config_file': os.path.join(instance_home, 'instance_config.py'), | 312 'config_file': os.path.join(instance_home, 'config.py'), |
| 313 'database_config_file': os.path.join(instance_home, 'dbinit.py') | 313 'database_config_file': os.path.join(instance_home, 'dbinit.py') |
| 314 } | 314 } |
| 315 return 0 | 315 return 0 |
| 316 | 316 |
| 317 | 317 |
| 1144 tool = AdminTool() | 1144 tool = AdminTool() |
| 1145 sys.exit(tool.main()) | 1145 sys.exit(tool.main()) |
| 1146 | 1146 |
| 1147 # | 1147 # |
| 1148 # $Log: not supported by cvs2svn $ | 1148 # $Log: not supported by cvs2svn $ |
| 1149 # Revision 1.23 2002/08/19 02:53:27 richard | |
| 1150 # full database export and import is done | |
| 1151 # | |
| 1149 # Revision 1.22 2002/08/16 04:26:42 richard | 1152 # Revision 1.22 2002/08/16 04:26:42 richard |
| 1150 # moving towards full database export | 1153 # moving towards full database export |
| 1151 # | 1154 # |
| 1152 # Revision 1.21 2002/08/01 01:07:37 richard | 1155 # Revision 1.21 2002/08/01 01:07:37 richard |
| 1153 # include info about new user roles | 1156 # include info about new user roles |
