index 45754cb3984167d1204a2657fc6b7fa1c5ae0c1a..f50f0d3ffed147374164f1e6085a06ba3ae802dd 100644 (file)
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: dbinit.py,v 1.14 2001-11-21 02:34:18 richard Exp $
+# $Id: dbinit.py,v 1.18 2002-01-02 02:31:38 richard Exp $
import os
class IssueClass(roundupdb.IssueClass):
''' issues need the email information
'''
+ INSTANCE_NAME = instance_config.INSTANCE_NAME
ISSUE_TRACKER_WEB = instance_config.ISSUE_TRACKER_WEB
ISSUE_TRACKER_EMAIL = instance_config.ISSUE_TRACKER_EMAIL
ADMIN_EMAIL = instance_config.ADMIN_EMAIL
MAILHOST = instance_config.MAILHOST
MESSAGES_TO_AUTHOR = instance_config.MESSAGES_TO_AUTHOR
+ EMAIL_SIGNATURE_POSITION = instance_config.EMAIL_SIGNATURE_POSITION
def open(name=None):
msg = FileClass(db, "msg",
author=Link("user"), recipients=Multilink("user"),
date=Date(), summary=String(),
- files=Multilink("file"))
+ files=Multilink("file"),
+ messageid=String(), inreplyto=String())
file = FileClass(db, "file",
name=String(), type=String())
user.create(username="admin", password=adminpw,
address=instance_config.ADMIN_EMAIL)
- db.close()
+ db.commit()
#
# $Log: not supported by cvs2svn $
+# Revision 1.17 2001/12/02 05:06:16 richard
+# . We now use weakrefs in the Classes to keep the database reference, so
+# the close() method on the database is no longer needed.
+# I bumped the minimum python requirement up to 2.1 accordingly.
+# . #487480 ] roundup-server
+# . #487476 ] INSTALL.txt
+#
+# I also cleaned up the change message / post-edit stuff in the cgi client.
+# There's now a clearly marked "TODO: append the change note" where I believe
+# the change note should be added there. The "changes" list will obviously
+# have to be modified to be a dict of the changes, or somesuch.
+#
+# More testing needed.
+#
+# Revision 1.16 2001/12/01 07:17:50 richard
+# . We now have basic transaction support! Information is only written to
+# the database when the commit() method is called. Only the anydbm
+# backend is modified in this way - neither of the bsddb backends have been.
+# The mail, admin and cgi interfaces all use commit (except the admin tool
+# doesn't have a commit command, so interactive users can't commit...)
+# . Fixed login/registration forwarding the user to the right page (or not,
+# on a failure)
+#
+# Revision 1.15 2001/11/26 22:55:56 richard
+# Feature:
+# . Added INSTANCE_NAME to configuration - used in web and email to identify
+# the instance.
+# . Added EMAIL_SIGNATURE_POSITION to indicate where to place the roundup
+# signature info in e-mails.
+# . Some more flexibility in the mail gateway and more error handling.
+# . Login now takes you to the page you back to the were denied access to.
+#
+# Fixed:
+# . Lots of bugs, thanks Roché and others on the devel mailing list!
+#
+# Revision 1.14 2001/11/21 02:34:18 richard
+# Added a target version field to the extended issue schema
+#
# Revision 1.13 2001/10/30 00:54:45 richard
# Features:
# . #467129 ] Lossage when username=e-mail-address