Mercurial > p > roundup > code
comparison roundup/admin.py @ 3376:446f769b813b maint-0.8
merge from HEAD
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 05 Jul 2005 06:28:35 +0000 |
| parents | 2f8f4877be65 |
| children | 6d6d7e331c54 |
comparison
equal
deleted
inserted
replaced
| 3374:3f12b4bcf796 | 3376:446f769b813b |
|---|---|
| 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.85.2.8 2005-06-24 05:34:15 richard Exp $ | 19 # $Id: admin.py,v 1.85.2.9 2005-07-05 06:28:35 richard Exp $ |
| 20 | 20 |
| 21 '''Administration commands for maintaining Roundup trackers. | 21 '''Administration commands for maintaining Roundup trackers. |
| 22 ''' | 22 ''' |
| 23 __docformat__ = 'restructuredtext' | 23 __docformat__ = 'restructuredtext' |
| 24 | 24 |
| 405 # install! | 405 # install! |
| 406 init.install(tracker_home, templates[template]['path']) | 406 init.install(tracker_home, templates[template]['path']) |
| 407 init.write_select_db(tracker_home, backend) | 407 init.write_select_db(tracker_home, backend) |
| 408 | 408 |
| 409 print _(""" | 409 print _(""" |
| 410 --------------------------------------------------------------------------- | |
| 410 You should now edit the tracker configuration file: | 411 You should now edit the tracker configuration file: |
| 411 %(config_file)s""") % {"config_file": config_ini_file} | 412 %(config_file)s""") % {"config_file": config_ini_file} |
| 412 | 413 |
| 413 # find list of options that need manual adjustments | 414 # find list of options that need manual adjustments |
| 414 # XXX config._get_unset_options() is marked as private | 415 # XXX config._get_unset_options() is marked as private |
| 425 you should also edit the schema file: | 426 you should also edit the schema file: |
| 426 %(database_config_file)s | 427 %(database_config_file)s |
| 427 You may also change the database initialisation file: | 428 You may also change the database initialisation file: |
| 428 %(database_init_file)s | 429 %(database_init_file)s |
| 429 ... see the documentation on customizing for more information. | 430 ... see the documentation on customizing for more information. |
| 431 | |
| 432 You MUST run the "roundup-admin initialise" command once you've performed | |
| 433 the above steps. | |
| 434 --------------------------------------------------------------------------- | |
| 430 """) % { | 435 """) % { |
| 431 'database_config_file': os.path.join(tracker_home, 'schema.py'), | 436 'database_config_file': os.path.join(tracker_home, 'schema.py'), |
| 432 'database_init_file': os.path.join(tracker_home, 'initial_data.py'), | 437 'database_init_file': os.path.join(tracker_home, 'initial_data.py'), |
| 433 } | 438 } |
| 434 return 0 | 439 return 0 |
