Mercurial > p > roundup > code
diff roundup/templates/classic/dbinit.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 | 8cd545738d8e |
line wrap: on
line diff
--- a/roundup/templates/classic/dbinit.py Mon Oct 08 23:36:44 2001 +0000 +++ b/roundup/templates/classic/dbinit.py Tue Oct 09 07:25:59 2001 +0000 @@ -15,12 +15,12 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: dbinit.py,v 1.7 2001-08-07 00:24:43 richard Exp $ +# $Id: dbinit.py,v 1.8 2001-10-09 07:25:59 richard Exp $ import os import instance_config -from roundup import roundupdb, cgi_client, mailgw +from roundup import roundupdb import select_db from roundup.roundupdb import Class, FileClass @@ -45,7 +45,7 @@ ''' as from the roundupdb method openDB ''' - from roundup.hyperdb import String, Date, Link, Multilink + from roundup.hyperdb import String, Password, Date, Link, Multilink # open the database db = Database(instance_config.DATABASE, name) @@ -64,7 +64,7 @@ keyword.setkey("name") user = Class(db, "user", - username=String(), password=String(), + username=String(), password=Password(), address=String(), realname=String(), phone=String(), organisation=String()) user.setkey("username") @@ -125,6 +125,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.7 2001/08/07 00:24:43 richard +# stupid typo +# # Revision 1.6 2001/08/07 00:15:51 richard # Added the copyright/license notice to (nearly) all files at request of # Bizar Software.
