------------------------------------------------------------
revno: 6761
committer: Barry Warsaw <[email protected]>
branch nick: 3.0
timestamp: Sat 2009-08-08 00:45:21 -0400
message:
Use Storm 0.15's new GenerationalCache.
modified:
src/mailman/database/__init__.py
--
lp:mailman
https://code.launchpad.net/~mailman-coders/mailman/3.0
Your team Mailman Checkins is subscribed to branch lp:mailman.
To unsubscribe from this branch go to
https://code.launchpad.net/~mailman-coders/mailman/3.0/+edit-subscription.
=== modified file 'src/mailman/database/__init__.py'
--- src/mailman/database/__init__.py 2009-07-17 05:16:27 +0000
+++ src/mailman/database/__init__.py 2009-08-08 04:45:21 +0000
@@ -28,6 +28,7 @@
from locknix.lockfile import Lock
from lazr.config import as_boolean
from pkg_resources import resource_string
+from storm.cache import GenerationalCache
from storm.locals import create_database, Store
from urlparse import urlparse
from zope.interface import implements
@@ -106,7 +107,7 @@
# half dozen and all...
touch(url)
database = create_database(url)
- store = Store(database)
+ store = Store(database, GenerationalCache())
database.DEBUG = (as_boolean(config.database.debug)
if debug is None else debug)
# Check the sqlite master database to see if the version file exists.
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org