[Zope-Checkins] CVS: Zope3/lib/python/Zope/StartUp - RequestFactoryRegistry.py:1.1.2.2.14.1
Jim Fulton
jim@zope.com
Wed, 29 May 2002 11:09:56 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/StartUp
In directory cvs.zope.org:/tmp/cvs-serv12181/lib/python/Zope/StartUp
Modified Files:
Tag: Zope3InWonderland-branch
RequestFactoryRegistry.py
Log Message:
- Added permission_id attribute to adapter and utility directives.
- Got rid of old getView, getResource, and getDefaultViewName.
Renamed getRequestView to getView (and so on).
Changed view interface to use context, rather than getContext.
Introduced notion of presentation types (e.g. IBrowserPresentation,
which is cleaner than IBrowserPublisher).
- Began converting to get/queryFoo, which is much nicer.
- Many formatting fixups.
=== Zope3/lib/python/Zope/StartUp/RequestFactoryRegistry.py 1.1.2.2 => 1.1.2.2.14.1 ===
#
##############################################################################
-"""
-
-$Id$
-"""
-
-
-from Zope.App.Formulator.SimpleRegistry import SimpleRegistry
-from Zope.App.Formulator.ISimpleRegistry import ISimpleRegistry
-from RequestFactory import IRequestFactory
-
-class IRequestFactoryRegistry(ISimpleRegistry):
- """
- The RequestFactory Registry manages a list of all the fields
- available in Zope. A registry is useful at this point, since
- fields can be initialized and registered by many places.
-
- Note that it does not matter whether we have classes or instances as
- fields. If the fields are instances, they must implement
- IInstanceFactory.
- """
- pass
-
-
-class RequestFactoryRegistry(SimpleRegistry):
- """ """
-
- __implements__ = (IRequestFactoryRegistry,)
-
-
-
-RequestFactoryRegistry = RequestFactoryRegistry(IRequestFactory)
-registerRequestFactory = RequestFactoryRegistry.register
-getRequestFactory = RequestFactoryRegistry.get
+"""
+
+$Id$
+"""
+
+
+from Zope.App.Formulator.SimpleRegistry import SimpleRegistry
+from Zope.App.Formulator.ISimpleRegistry import ISimpleRegistry
+from RequestFactory import IRequestFactory
+
+class IRequestFactoryRegistry(ISimpleRegistry):
+ """
+ The RequestFactory Registry manages a list of all the fields
+ available in Zope. A registry is useful at this point, since
+ fields can be initialized and registered by many places.
+
+ Note that it does not matter whether we have classes or instances as
+ fields. If the fields are instances, they must implement
+ IInstanceFactory.
+ """
+ pass
+
+
+class RequestFactoryRegistry(SimpleRegistry):
+ """ """
+
+ __implements__ = (IRequestFactoryRegistry,)
+
+
+
+RequestFactoryRegistry = RequestFactoryRegistry(IRequestFactory)
+registerRequestFactory = RequestFactoryRegistry.register
+getRequestFactory = RequestFactoryRegistry.get