[Checkins] SVN: zope.component/trunk/src/zope/component/interfaces.py Remove duplication of bbb interfaces. Add a marker comment that those things are deprecated.
Dan Korostelev
nadako at gmail.com
Sat Mar 7 05:49:40 EST 2009
Log message for revision 97615:
Remove duplication of bbb interfaces. Add a marker comment that those things are deprecated.
Changed:
U zope.component/trunk/src/zope/component/interfaces.py
-=-
Modified: zope.component/trunk/src/zope/component/interfaces.py
===================================================================
--- zope.component/trunk/src/zope/component/interfaces.py 2009-03-07 10:42:01 UTC (rev 97614)
+++ zope.component/trunk/src/zope/component/interfaces.py 2009-03-07 10:49:40 UTC (rev 97615)
@@ -910,6 +910,9 @@
"""Component registration and access
"""
+########################################################################
+# This interfaces are deprecated and meant to be (re)moved soon
+#
class IContextDependent(Interface):
"""Components implementing this interface must have a context component.
@@ -975,77 +978,6 @@
"stands in" for the user.
"""
-class IDefaultViewName(Interface):
- """A string that contains the default view name
-
- A default view name is used to select a view when a user hasn't
- specified one.
- """
-
-class IContextDependent(Interface):
- """Components implementing this interface must have a context component.
-
- Usually the context must be one of the arguments of the
- constructor. Adapters and views are a primary example of context-dependent
- components.
- """
-
- context = Attribute(
- """The context of the object
-
- This is the object being adapted, viewed, extended, etc.
- """)
-
-
-class IPresentation(Interface):
- """Presentation components provide interfaces to external actors
-
- The are created for requests, which encapsulate external actors,
- connections, etc.
- """
-
- request = Attribute(
- """The request
-
- The request is a surrogate for the user. It also provides the
- presentation type and skin. It is of type
- IPresentationRequest.
- """)
-
-
-class IPresentationRequest(Interface):
- """An IPresentationRequest provides methods for getting view meta data."""
-
-
-class IResource(IPresentation):
- """Resources provide data to be used for presentation."""
-
-
-class IResourceFactory(Interface):
- """A factory to create factories using the request."""
-
- def __call__(request):
- """Create a resource for a request
-
- The request must be an IPresentationRequest.
- """
-
-
-class IView(IPresentation, IContextDependent):
- """Views provide a connection between an external actor and an object"""
-
-
-class IViewFactory(Interface):
- """Objects for creating views"""
-
- def __call__(context, request):
- """Create an view (IView) object
-
- The context aregument is the object displayed by the view. The
- request argument is an object, such as a web request, that
- "stands in" for the user.
- """
-
# When this code is removed, this needs to be undeprecated and moved
# towards a private interface somewhere in zope.app.publisher. In
# effect the Zope 3 core is still using IDefaultViewName at present,
@@ -1056,3 +988,7 @@
A default view name is used to select a view when a user hasn't
specified one.
"""
+
+#
+#
+########################################################################
\ No newline at end of file
More information about the Checkins
mailing list