summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c36147)
raw | patch | inline | side by side (parent: 4c36147)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 24 May 2002 04:03:23 +0000 (04:03 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 24 May 2002 04:03:23 +0000 (04:03 +0000) |
customisation.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@761 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@761 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/templates/classic/dbinit.py | patch | blob | history | |
roundup/templates/extended/dbinit.py | patch | blob | history |
index ba9642a16003265aad934d6bdc4f3307e608cfa3..5e708e9055e8e350919547714f334386afc9e40e 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: dbinit.py,v 1.16 2002-02-16 08:06:14 richard Exp $
+# $Id: dbinit.py,v 1.17 2002-05-24 04:03:23 richard Exp $
import os
# open the database
db = Database(instance_config, name)
- # Now initialise the schema. Must do this each time.
+ #
+ # Now initialise the schema. Must do this each time the database is
+ # opened.
+ #
+
+ # Class automatically gets these properties:
+ # creation = Date()
+ # activity = Date()
+ # creator = Link('user')
pri = Class(db, "priority",
name=String(), order=String())
pri.setkey("name")
alternate_addresses=String())
user.setkey("username")
+ # FileClass automatically gets these properties:
+ # content = String() [saved to disk in <instance home>/db/files/]
+ # (it also gets the Class properties creation, activity and creator)
msg = FileClass(db, "msg",
author=Link("user"), recipients=Multilink("user"),
date=Date(), summary=String(),
file = FileClass(db, "file",
name=String(), type=String())
+ # IssueClass automatically gets these properties:
+ # title = String()
+ # messages = Multilink("msg")
+ # files = Multilink("file")
+ # nosy = Multilink("user")
+ # superseder = Multilink("issue")
+ # (it also gets the Class properties creation, activity and creator)
issue = IssueClass(db, "issue",
assignedto=Link("user"), topic=Multilink("keyword"),
priority=Link("priority"), status=Link("status"))
def init(adminpw):
''' as from the roundupdb method initDB
- Open the new database, and set up a bunch of attributes.
-
+ Open the new database, and add new nodes - used for initialisation. You
+ can edit this before running the "roundup-admin initialise" command to
+ change the initial database entries.
'''
dbdir = os.path.join(instance_config.DATABASE, 'files')
if not os.path.isdir(dbdir):
#
# $Log: not supported by cvs2svn $
+# Revision 1.16 2002/02/16 08:06:14 richard
+# Removed the key property restriction on title of the classic issue class.
+#
# Revision 1.15 2002/02/15 07:08:44 richard
# . Alternate email addresses are now available for users. See the MIGRATION
# file for info on how to activate the feature.
index 0c13a6f2613468f8c0e48cd2bbf0873ac319fb62..7bddfeed3f0c585e7a766e4dd7e7faeae228aabe 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: dbinit.py,v 1.20 2002-02-15 07:08:44 richard Exp $
+# $Id: dbinit.py,v 1.21 2002-05-24 04:03:23 richard Exp $
import os
# open the database
db = Database(instance_config, name)
- # Now initialise the schema. Must do this each time.
+ #
+ # Now initialise the schema. Must do this each time the database is
+ # opened.
+ #
+
+ # Class automatically gets these properties:
+ # creation = Date()
+ # activity = Date()
+ # creator = Link('user')
pri = Class(db, "priority",
name=String(), order=String())
pri.setkey("name")
alternate_addresses=String())
user.setkey("username")
+ # FileClass automatically gets these properties:
+ # content = String() [saved to disk in <instance home>/db/files/]
+ # (it also gets the Class properties creation, activity and creator)
msg = FileClass(db, "msg",
author=Link("user"), recipients=Multilink("user"),
date=Date(), summary=String(),
date=Date(), time=String(),
performedby=Link("user"), description=String())
+ # IssueClass automatically gets these properties:
+ # title = String()
+ # messages = Multilink("msg")
+ # files = Multilink("file")
+ # nosy = Multilink("user")
+ # superseder = Multilink("issue")
+ # (it also gets the Class properties creation, activity and creator)
support = IssueClass(db, "support",
assignedto=Link("user"), status=Link("status"),
rate=Link("rate"), source=Link("source"),
def init(adminpw):
''' as from the roundupdb method initDB
- Open the new database, and set up a bunch of attributes.
-
+ Open the new database, and add new nodes - used for initialisation. You
+ can edit this before running the "roundup-admin initialise" command to
+ change the initial database entries.
'''
dbdir = os.path.join(instance_config.DATABASE, 'files')
if not os.path.isdir(dbdir):
#
# $Log: not supported by cvs2svn $
+# Revision 1.20 2002/02/15 07:08:44 richard
+# . Alternate email addresses are now available for users. See the MIGRATION
+# file for info on how to activate the feature.
+#
# Revision 1.19 2002/01/14 02:20:15 richard
# . changed all config accesses so they access either the instance or the
# config attriubute on the db. This means that all config is obtained from