Commit ceda2236 authored by Jim Fulton's avatar Jim Fulton

Now you can define the ZODB in custom_zodb, not just the storage.

parent f2fff8bd
......@@ -107,13 +107,18 @@ try:
except:
import ZODB.FileStorage
DB=ZODB.FileStorage.FileStorage(Globals.BobobaseName)
DB=ZODB.DB(DB)
else:
m=imp.load_module('Zope.custom_zodb', m[0], m[1], m[2])
DB=m.Storage
if hasattr(m,'DB'):
DB=m.DB
else:
DB=m.Storage
DB=ZODB.DB(DB)
Globals.BobobaseName = DB.getName()
sys.modules['Zope.custom_zodb']=m
DB=ZODB.DB(DB)
Globals.DB=DB # Ick, this is temporary until we come up with some registry
# Hook for providing multiple transaction object manager undo support:
......
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