X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Finit.py;h=b0e2b5b8bc03f0e38078dc3276f84f76e3541347;hb=429f34ed2930c3712619b36894c4275e8567863b;hp=efc571292cb1b45db624c2c70dcdda220cc2fe5b;hpb=7d090d036546fee25381ecc6ddaddfd26317c9c3;p=roundup.git diff --git a/roundup/init.py b/roundup/init.py index efc5712..b0e2b5b 100644 --- a/roundup/init.py +++ b/roundup/init.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: init.py,v 1.18 2001-11-22 15:46:42 jhermann Exp $ +# $Id: init.py,v 1.24 2002-09-10 12:44:42 richard Exp $ __doc__ = """ Init (create) a roundup instance. @@ -36,7 +36,7 @@ def copytree(src, dst, symlinks=0): it is false, the contents of the files pointed to by symbolic links are copied. - XXX copied from shutil.py in std lib + This was copied from shutil.py in std lib. """ names = os.listdir(src) @@ -55,18 +55,17 @@ def copytree(src, dst, symlinks=0): else: install_util.copyDigestedFile(srcname, dstname) -def init(instance_home, template, backend, adminpw): - '''Initialise an instance using the named template and backend. +def install(instance_home, template, backend): + '''Install an instance using the named template and backend. instance_home - the directory to place the instance data in template - the template to use in creating the instance data backend - the database to use to store the instance data - adminpw - the password for the "admin" user The instance_home directory will be created using the files found in the named template (roundup.templates.). A standard instance_home contains: - . instance_config.py + . config.py - simple configuration of things like the email address for the mail gateway, the mail domain, the mail host, ... . dbinit.py and select_db.py @@ -88,86 +87,30 @@ def init(instance_home, template, backend, adminpw): the template. ''' # first, copy the template dir over - import roundup.templatebuilder + from roundup.templates import builder + # copy the roundup.templates.