diff roundup/templates/extended/dbinit.py @ 524:dce4c75bef5a

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 instance_config instead of the mish-mash of classes. This will make switching to a ConfigParser setup easier too, I hope. At a minimum, this makes migration a _little_ easier (a lot easier in the 0.5.0 switch, I hope!)
author Richard Jones <richard@users.sourceforge.net>
date Mon, 14 Jan 2002 02:20:15 +0000
parents a1a44636bace
children edd210915e64
line wrap: on
line diff
--- a/roundup/templates/extended/dbinit.py	Sun Jan 13 08:03:53 2002 +0000
+++ b/roundup/templates/extended/dbinit.py	Mon Jan 14 02:20:15 2002 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: dbinit.py,v 1.18 2002-01-02 02:31:38 richard Exp $
+# $Id: dbinit.py,v 1.19 2002-01-14 02:20:15 richard Exp $
 
 import os
 
@@ -35,13 +35,7 @@
 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 @@
     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", 
@@ -179,6 +173,21 @@
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.18  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.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.

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