Commit aecc55c4 authored by Jim Fulton's avatar Jim Fulton

Added DB to Globals. This will need to change, eventually.

Added code to keep from accidentially loading Main, since
BoboPOS2 and ZODB3 conflict.
parent 174e515c
......@@ -20,6 +20,7 @@ DB=ZODB.FileStorage.FileStorage(
Globals.BobobaseName,
log=lambda x: sys.stderr.write(x))
DB=ZODB.DB(DB)
Globals.DB=DB # Ick, this is temporary until we come up with some registry
Globals.opened.append(DB)
# Set up the "application" object that automagically opens
......@@ -33,3 +34,6 @@ c=app()
OFS.Application.initialize(c)
c._p_jar.close()
del c
# This is sneaky, but we don't want to play with Main:
sys.modules['Main']=sys.modules['Zope']
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