comparison test/memorydb.py @ 4358:887a153cedec

The email for the first message on an issue... ...was sometimes having its In-Reply-To set to itself (thanks Eric Kow). Also fix roundupdb IssueClass code to use the variable "issueid" instead of the braindead "nodeid".
author Richard Jones <richard@users.sourceforge.net>
date Tue, 23 Feb 2010 03:20:17 +0000
parents 23bf9290140a
children 355cd8fdeb32
comparison
equal deleted inserted replaced
4357:13b3155869e0 4358:887a153cedec
14 from roundup.backends import sessions_dbm 14 from roundup.backends import sessions_dbm
15 from roundup.backends import indexer_common 15 from roundup.backends import indexer_common
16 from roundup.hyperdb import * 16 from roundup.hyperdb import *
17 from roundup.support import ensureParentsExist 17 from roundup.support import ensureParentsExist
18 18
19 def new_config(): 19 def new_config(debug=False):
20 config = configuration.CoreConfig() 20 config = configuration.CoreConfig()
21 config.DATABASE = "db" 21 config.DATABASE = "db"
22 #config.logging = MockNull() 22 #config.logging = MockNull()
23 # these TRACKER_WEB and MAIL_DOMAIN values are used in mailgw tests 23 # these TRACKER_WEB and MAIL_DOMAIN values are used in mailgw tests
24 if debug:
25 config.LOGGING_LEVEL = "DEBUG"
24 config.MAIL_DOMAIN = "your.tracker.email.domain.example" 26 config.MAIL_DOMAIN = "your.tracker.email.domain.example"
25 config.TRACKER_WEB = "http://tracker.example/cgi-bin/roundup.cgi/bugs/" 27 config.TRACKER_WEB = "http://tracker.example/cgi-bin/roundup.cgi/bugs/"
26 return config 28 return config
27 29
28 def create(journaltag, create=True): 30 def create(journaltag, create=True, debug=False):
29 db = Database(new_config(), journaltag) 31 db = Database(new_config(debug), journaltag)
30 32
31 # load standard schema 33 # load standard schema
32 schema = os.path.join(os.path.dirname(__file__), 34 schema = os.path.join(os.path.dirname(__file__),
33 '../share/roundup/templates/classic/schema.py') 35 '../share/roundup/templates/classic/schema.py')
34 vars = dict(globals()) 36 vars = dict(globals())

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