diff roundup/templates/classic/dbinit.py @ 1235:7441653e5330

added hook for external password validation, and some more docco
author Richard Jones <richard@users.sourceforge.net>
date Thu, 26 Sep 2002 23:59:08 +0000
parents 7e193bbda38e
children 5a44e8cf1a62
line wrap: on
line diff
--- a/roundup/templates/classic/dbinit.py	Thu Sep 26 22:15:54 2002 +0000
+++ b/roundup/templates/classic/dbinit.py	Thu Sep 26 23:59:08 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: dbinit.py,v 1.29 2002-09-13 03:31:18 richard Exp $
+# $Id: dbinit.py,v 1.30 2002-09-26 23:59:08 richard Exp $
 
 import os
 
@@ -55,6 +55,8 @@
                     klass=String(),     name=String(),
                     url=String())
     query.setkey("name")
+
+    # add any additional database schema configuration here
     
     # Note: roles is a comma-separated string of Role names
     user = Class(db, "user", 
@@ -187,6 +189,9 @@
         address=config.ADMIN_EMAIL, roles='Admin')
     user.create(username="anonymous", roles='Anonymous')
 
+    # add any additional database create steps here - but only if you
+    # haven't initialised the database with the admin "initialise" command
+
     db.commit()
 
 # vim: set filetype=python ts=4 sw=4 et si

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