index a677082becc9a4b06a20a31d93f1b3fe577d3ffe..f870b490e70821bc53c9c23fb44ab41b3234f7c4 100644 (file)
-# $Id: dbinit.py,v 1.4 2001-07-23 08:45:28 richard Exp $
+# $Id: dbinit.py,v 1.8 2001-07-30 01:26: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
MAILHOST = instance_config.MAILHOST
-class Client(cgi_client.Client):
- ''' derives basic mail gateway implementation from the standard module,
- with any specific extensions
- '''
- TEMPLATES = instance_config.TEMPLATES
- pass
-
-class MailGW(mailgw.MailGW):
- ''' derives basic mail gateway implementation from the standard module,
- with any specific extensions
- '''
- ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL
- ADMIN_EMAIL = instance_config.ADMIN_EMAIL
- MAILHOST = instance_config.MAILHOST
-
def open(name=None):
''' as from the roundupdb method openDB
- storagelocator must be the directory the __init__.py file is in
- - os.path.split(__file__)[0] gives us that I think
'''
from roundup.hyperdb import String, Date, Link, Multilink
date=Date(), time=String(),
performedby=Link("user"), description=String())
+ support = IssueClass(db, "support",
+ assignedto=Link("user"), status=Link("status"),
+ rate=Link("rate"), source=Link("source"),
+ product=Link("product"), platform=Multilink("platform"),
+ version=String(), timelog=Multilink("timelog"),
+ customername=String())
+
issue = IssueClass(db, "issue",
assignedto=Link("user"), priority=Link("priority"),
- status=Link("status"), rate=Link("rate"),
- source=Link("source"), product=Link("product"),
+ status=Link("status"), product=Link("product"),
platform=Multilink("platform"), version=String(),
- timelog=Multilink("timelog"), customername=String())
- issue.setkey('title')
+ supportcall=Multilink("support"))
import detectors
detectors.init(db)
def init(adminpw):
''' as from the roundupdb method initDB
- storagelocator must be the directory the __init__.py file is in
- - os.path.split(__file__)[0] gives us that I think
-
Open the new database, and set up a bunch of attributes.
'''
pri.create(name="bug", order="2")
pri.create(name="usability", order="3")
pri.create(name="feature", order="4")
- pri.create(name="support", order="5")
stat = db.getclass('status')
stat.create(name="unread", order="1")
#
# $Log: not supported by cvs2svn $
+# Revision 1.7 2001/07/29 07:01:39 richard
+# Added vim command to all source so that we don't get no steenkin' tabs :)
+#
+# Revision 1.6 2001/07/25 01:23:07 richard
+# Added the Roundup spec to the new documentation directory.
+#
+# Revision 1.5 2001/07/23 23:20:35 richard
+# forgot to remove the interfaces from the dbinit module ;)
+#
+# Revision 1.4 2001/07/23 08:45:28 richard
+# ok, so now "./roundup-admin init" will ask questions in an attempt to get a
+# workable instance_home set up :)
+# _and_ anydbm has had its first test :)
+#
# Revision 1.3 2001/07/23 07:14:41 richard
# Moved the database backends off into backends.
#
# Final commit of Grande Splite
#
#
-
+# vim: set filetype=python ts=4 sw=4 et si