X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=roundup%2Finit.py;h=b0e2b5b8bc03f0e38078dc3276f84f76e3541347;hb=429f34ed2930c3712619b36894c4275e8567863b;hp=7bf27e35227ab58f2bcd52719b00356f47c66b76;hpb=0c64e32701b26dc8c4306384da6bc5b7824a8ff0;p=roundup.git diff --git a/roundup/init.py b/roundup/init.py index 7bf27e3..b0e2b5b 100644 --- a/roundup/init.py +++ b/roundup/init.py @@ -15,7 +15,11 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: init.py,v 1.17 2001-11-12 23:17:38 jhermann Exp $ +# $Id: init.py,v 1.24 2002-09-10 12:44:42 richard Exp $ + +__doc__ = """ +Init (create) a roundup instance. +""" import os, sys, errno @@ -32,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) @@ -51,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 @@ -84,83 +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.