[Zope-Checkins] CVS: Zope3 - z3.py:1.1.2.23
Jim Fulton
jim@zope.com
Sun, 24 Mar 2002 11:56:25 -0500
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv24583
Modified Files:
Tag: Zope-3x-branch
z3.py
Log Message:
Hacked in code to register an undo utility for the database.
Eventually, we need to move this and a bunch of other code out of here
into code called by configuration files.
=== Zope3/z3.py 1.1.2.22 => 1.1.2.23 ===
DB = DB(FileStorage('Data.fs'))
+from Zope.ComponentArchitecture import provideUtility
+from Zope.App.Undo.ZODBUndoManager import ZODBUndoManager
+from Zope.App.Undo.IUndoManager import IUndoManager
+provideUtility(IUndoManager, ZODBUndoManager(DB))
+
connection = DB.open()
root = connection.root()