comparison roundup/init.py @ 1055:cf72eae57a2c

Fixed instance installation ... moved the htmlbase module into templates and call it <template>_htmlbase.py ... no more try/except in instance __init__! Added :required to form handling. Handle multiple values for single form items with decent error report.
author Richard Jones <richard@users.sourceforge.net>
date Thu, 05 Sep 2002 23:39:14 +0000
parents fb8a8eb55aac
children 04a6b3bfbf23
comparison
equal deleted inserted replaced
1054:3d8ea16347aa 1055:cf72eae57a2c
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.21 2002-08-16 04:25:03 richard Exp $ 18 # $Id: init.py,v 1.22 2002-09-05 23:39:12 richard Exp $
19 19
20 __doc__ = """ 20 __doc__ = """
21 Init (create) a roundup instance. 21 Init (create) a roundup instance.
22 """ 22 """
23 23
87 the template. 87 the template.
88 ''' 88 '''
89 # first, copy the template dir over 89 # first, copy the template dir over
90 from roundup.templates import builder 90 from roundup.templates import builder
91 91
92 # copy the roundup.templates.<template> package contents to the instance dir
92 template_dir = os.path.split(__file__)[0] 93 template_dir = os.path.split(__file__)[0]
93 template_name = template 94 template_name = template
94 template = os.path.join(template_dir, 'templates', template) 95 template = os.path.join(template_dir, 'templates', template)
95 copytree(template, instance_home) 96 copytree(template, instance_home)
96 97
112 instance = roundup.instance.open(instance_home) 113 instance = roundup.instance.open(instance_home)
113 instance.init(password.Password(adminpw)) 114 instance.init(password.Password(adminpw))
114 115
115 # 116 #
116 # $Log: not supported by cvs2svn $ 117 # $Log: not supported by cvs2svn $
118 # Revision 1.21 2002/08/16 04:25:03 richard
119 # cleanup: moved templatebuilder into templates.builder
120 #
117 # Revision 1.20 2002/07/14 02:05:53 richard 121 # Revision 1.20 2002/07/14 02:05:53 richard
118 # . all storage-specific code (ie. backend) is now implemented by the backends 122 # . all storage-specific code (ie. backend) is now implemented by the backends
119 # 123 #
120 # Revision 1.19 2002/05/23 01:14:20 richard 124 # Revision 1.19 2002/05/23 01:14:20 richard
121 # . split instance initialisation into two steps, allowing config changes 125 # . split instance initialisation into two steps, allowing config changes

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