[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Publisher/Browser - GlobalBrowserMenuService.py:1.4

Jim Fulton jim@zope.com
Thu, 1 Aug 2002 11:34:14 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/Publisher/Browser
In directory cvs.zope.org:/tmp/cvs-serv4877/lib/python/Zope/App/Publisher/Browser

Modified Files:
	GlobalBrowserMenuService.py 
Log Message:
Refactored and moved Zope.ComponentArchitecture.IToIRegistry into
Interface.Registry. This is only the first step. The tests pass and
Zope 3 runs, but there are a bunch of wrong dependencies that still
need to get cleaned up, which is my next task.



=== Zope3/lib/python/Zope/App/Publisher/Browser/GlobalBrowserMenuService.py 1.3 => 1.4 ===
 
 from IBrowserMenuService import IBrowserMenuService
 from Zope.Configuration.Action import Action
-from Zope.ComponentArchitecture.IToIRegistry import TypeRegistry
+from Interface.Registry.TypeRegistry import TypeRegistry
 from Zope.Exceptions import DuplicationError, Unauthorized, Forbidden
 from Zope.App.PageTemplate.Engine import Engine
 from Zope.App.ZopePublication.Browser.PublicationTraverse \
@@ -49,7 +49,7 @@
         else:
             filter = None
 
-        data = registry.getJustForType(interface) or []
+        data = registry.get(interface) or []
         data.append((action, title, description, filter))
         registry.register(interface, data)