comparison roundup/init.py @ 270:a4241ddd22d7

Added the Password property type. See "pydoc roundup.password" for implementation details. Have updated some of the documentation too.
author Richard Jones <richard@users.sourceforge.net>
date Tue, 09 Oct 2001 07:25:59 +0000
parents 18134bffab37
children 2d92f93072f9
comparison
equal deleted inserted replaced
269:82cfd78f3c4e 270:a4241ddd22d7
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.15 2001-08-07 00:24:42 richard Exp $ 18 # $Id: init.py,v 1.16 2001-10-09 07:25:59 richard Exp $
19 19
20 import os, shutil, sys, errno 20 import os, shutil, sys, errno
21 21
22 import roundup.instance 22 import roundup.instance, password
23 23
24 def copytree(src, dst, symlinks=0): 24 def copytree(src, dst, symlinks=0):
25 """Recursively copy a directory tree using copy2(). 25 """Recursively copy a directory tree using copy2().
26 26
27 The destination directory os allowed to exist. 27 The destination directory os allowed to exist.
97 from roundup.backends.back_%s import Database'''%backend 97 from roundup.backends.back_%s import Database'''%backend
98 open(os.path.join(instance_home, 'select_db.py'), 'w').write(db) 98 open(os.path.join(instance_home, 'select_db.py'), 'w').write(db)
99 99
100 # now import the instance and call its init 100 # now import the instance and call its init
101 instance = roundup.instance.open(instance_home) 101 instance = roundup.instance.open(instance_home)
102 instance.init(adminpw) 102 instance.init(password.Password(adminpw))
103 103
104 # 104 #
105 # $Log: not supported by cvs2svn $ 105 # $Log: not supported by cvs2svn $
106 # Revision 1.15 2001/08/07 00:24:42 richard
107 # stupid typo
108 #
106 # Revision 1.14 2001/08/07 00:15:51 richard 109 # Revision 1.14 2001/08/07 00:15:51 richard
107 # Added the copyright/license notice to (nearly) all files at request of 110 # Added the copyright/license notice to (nearly) all files at request of
108 # Bizar Software. 111 # Bizar Software.
109 # 112 #
110 # Revision 1.13 2001/08/06 01:20:00 richard 113 # Revision 1.13 2001/08/06 01:20:00 richard

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