comparison roundup/templates/extended/dbinit.py @ 617:edd210915e64

Alternate email addresses are now available for users. See the MIGRATION file for info on how to activate the feature.
author Richard Jones <richard@users.sourceforge.net>
date Fri, 15 Feb 2002 07:08:45 +0000
parents dce4c75bef5a
children 2e70123bbf5a
comparison
equal deleted inserted replaced
616:08abec25b2c6 617:edd210915e64
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: dbinit.py,v 1.19 2002-01-14 02:20:15 richard Exp $ 18 # $Id: dbinit.py,v 1.20 2002-02-15 07:08:44 richard Exp $
19 19
20 import os 20 import os
21 21
22 import instance_config 22 import instance_config
23 from roundup import roundupdb 23 from roundup import roundupdb
61 keywords.setkey("name") 61 keywords.setkey("name")
62 62
63 user = Class(db, "user", 63 user = Class(db, "user",
64 username=String(), password=Password(), 64 username=String(), password=Password(),
65 address=String(), realname=String(), 65 address=String(), realname=String(),
66 phone=String(), organisation=String()) 66 phone=String(), organisation=String(),
67 alternate_addresses=String())
67 user.setkey("username") 68 user.setkey("username")
68 69
69 msg = FileClass(db, "msg", 70 msg = FileClass(db, "msg",
70 author=Link("user"), recipients=Multilink("user"), 71 author=Link("user"), recipients=Multilink("user"),
71 date=Date(), summary=String(), 72 date=Date(), summary=String(),
171 172
172 db.commit() 173 db.commit()
173 174
174 # 175 #
175 # $Log: not supported by cvs2svn $ 176 # $Log: not supported by cvs2svn $
177 # Revision 1.19 2002/01/14 02:20:15 richard
178 # . changed all config accesses so they access either the instance or the
179 # config attriubute on the db. This means that all config is obtained from
180 # instance_config instead of the mish-mash of classes. This will make
181 # switching to a ConfigParser setup easier too, I hope.
182 #
183 # At a minimum, this makes migration a _little_ easier (a lot easier in the
184 # 0.5.0 switch, I hope!)
185 #
176 # Revision 1.18 2002/01/02 02:31:38 richard 186 # Revision 1.18 2002/01/02 02:31:38 richard
177 # Sorry for the huge checkin message - I was only intending to implement #496356 187 # Sorry for the huge checkin message - I was only intending to implement #496356
178 # but I found a number of places where things had been broken by transactions: 188 # but I found a number of places where things had been broken by transactions:
179 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename 189 # . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename
180 # for _all_ roundup-generated smtp messages to be sent to. 190 # for _all_ roundup-generated smtp messages to be sent to.

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