Commit 0b13fdef authored by Jeremy Hylton's avatar Jeremy Hylton

Use MappingStorage instead of DemoStorage.

DemoStorage is too frail to bother using.
parent 26ece502
...@@ -13,12 +13,12 @@ ...@@ -13,12 +13,12 @@
############################################################################## ##############################################################################
"""Conventience function for creating test databases """Conventience function for creating test databases
$Id: util.py,v 1.2 2004/02/19 02:59:10 jeremy Exp $ $Id: util.py,v 1.3 2004/02/19 18:24:00 jeremy Exp $
""" """
import time import time
import persistent import persistent
from ZODB.DemoStorage import DemoStorage from ZODB.MappingStorage import MappingStorage
from ZODB.DB import DB as _DB from ZODB.DB import DB as _DB
try: try:
from transaction import get_transaction from transaction import get_transaction
...@@ -26,7 +26,7 @@ except ImportError: ...@@ -26,7 +26,7 @@ except ImportError:
pass # else assume ZODB will install it as a builtin pass # else assume ZODB will install it as a builtin
def DB(name='Test'): def DB(name='Test'):
return _DB(DemoStorage(name)) return _DB(MappingStorage(name))
def commit(): def commit():
get_transaction().commit() get_transaction().commit()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment