Code

#503353 ] setting properties in initial email
[roundup.git] / roundup / templates / classic / dbinit.py
index 0ea40ddc7c8da7f6af341084b6e8e741d86beef9..f458c650b76628e274145bf5b0a4b679e5faf098 100644 (file)
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: dbinit.py,v 1.13 2002-01-02 02:31:38 richard Exp $
+# $Id: dbinit.py,v 1.14 2002-01-14 02:20:15 richard Exp $
 
 import os
 
@@ -35,13 +35,7 @@ class Database(roundupdb.Database, select_db.Database):
 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
+    pass
 
  
 def open(name=None):
@@ -51,7 +45,7 @@ def open(name=None):
     from roundup.hyperdb import String, Password, Date, Link, Multilink
 
     # open the database
-    db = Database(instance_config.DATABASE, name)
+    db = Database(instance_config, name)
 
     # Now initialise the schema. Must do this each time.
     pri = Class(db, "priority", 
@@ -128,6 +122,21 @@ def init(adminpw):
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.13  2002/01/02 02:31:38  richard
+# Sorry for the huge checkin message - I was only intending to implement #496356
+# but I found a number of places where things had been broken by transactions:
+#  . modified ROUNDUPDBSENDMAILDEBUG to be SENDMAILDEBUG and hold a filename
+#    for _all_ roundup-generated smtp messages to be sent to.
+#  . the transaction cache had broken the roundupdb.Class set() reactors
+#  . newly-created author users in the mailgw weren't being committed to the db
+#
+# Stuff that made it into CHANGES.txt (ie. the stuff I was actually working
+# on when I found that stuff :):
+#  . #496356 ] Use threading in messages
+#  . detectors were being registered multiple times
+#  . added tests for mailgw
+#  . much better attaching of erroneous messages in the mail gateway
+#
 # Revision 1.12  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.