[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/app/undo/__init__.py Use newer registration apis.

Jim Fulton jim at zope.com
Tue Apr 4 06:50:18 EDT 2006


Log message for revision 66377:
  Use newer registration apis.
  M      src/zope/app/onlinehelp/onlinehelp.py
  M      src/zope/app/component/interface.py
  M      src/zope/app/form/browser/add.py
  M      src/zope/app/form/browser/editview.py
  M      src/zope/app/form/browser/schemadisplay.py
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/undo/__init__.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/undo/__init__.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/undo/__init__.py	2006-04-04 10:50:15 UTC (rev 66376)
+++ Zope3/branches/jim-adapter/src/zope/app/undo/__init__.py	2006-04-04 10:50:18 UTC (rev 66377)
@@ -39,7 +39,7 @@
 def undoSetup(event):
     # setup undo functionality
     sm = zapi.getGlobalSiteManager()
-    sm.provideUtility(IUndoManager, ZODBUndoManager(event.database))
+    sm.registerUtility(ZODBUndoManager(event.database), IUndoManager)
 
 class Prefix(unicode):
     """A prefix is equal to any string it is a prefix of.



More information about the Zope3-Checkins mailing list