comparison roundup/init.py @ 2889:accb3b411ef6

instructions and method for generating config.ini
author Richard Jones <richard@users.sourceforge.net>
date Tue, 09 Nov 2004 23:12:12 +0000
parents 22c459281026
children 1e7a3c001c6a
comparison
equal deleted inserted replaced
2887:23ed4195e442 2889:accb3b411ef6
13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 13 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 14 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 15 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 16 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
17 # 17 #
18 # $Id: init.py,v 1.33 2004-11-03 09:44:16 a1s Exp $ 18 # $Id: init.py,v 1.34 2004-11-09 23:12:12 richard Exp $
19 19
20 """Init (create) a roundup instance. 20 """Init (create) a roundup instance.
21 """ 21 """
22 __docformat__ = 'restructuredtext' 22 __docformat__ = 'restructuredtext'
23 23
97 97
98 # if there is no config.ini or old-style config.py 98 # if there is no config.ini or old-style config.py
99 # installed from the template, write default config text 99 # installed from the template, write default config text
100 config_ini_file = os.path.join(instance_home, CoreConfig.INI_FILE) 100 config_ini_file = os.path.join(instance_home, CoreConfig.INI_FILE)
101 if not (os.path.isfile(config_ini_file) 101 if not (os.path.isfile(config_ini_file)
102 or os.path.isfile(os.path.join(instance_home, 'config.py')) 102 or os.path.isfile(os.path.join(instance_home, 'config.py'))):
103 ):
104 config = CoreConfig() 103 config = CoreConfig()
105 config.save(config_ini_file) 104 config.save(config_ini_file)
106 105
107 106
108 def listTemplates(dir): 107 def listTemplates(dir):

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