[Checkins] SVN: zope.component/trunk/ Remove most of deprecated interfaces. IResource and IDefaultViewName are still to be moved to zope.app.publisher and/or zope.publisher.

Dan Korostelev nadako at gmail.com
Sat Mar 7 05:56:09 EST 2009


Log message for revision 97616:
  Remove most of deprecated interfaces. IResource and IDefaultViewName are still to be moved to zope.app.publisher and/or zope.publisher.

Changed:
  U   zope.component/trunk/CHANGES.txt
  U   zope.component/trunk/src/zope/component/interfaces.py

-=-
Modified: zope.component/trunk/CHANGES.txt
===================================================================
--- zope.component/trunk/CHANGES.txt	2009-03-07 10:49:40 UTC (rev 97615)
+++ zope.component/trunk/CHANGES.txt	2009-03-07 10:56:09 UTC (rev 97616)
@@ -7,11 +7,6 @@
 - Added a pure-Python 'hookable' implementation, for use when
   'zope.hookable' is not present.
 
-- Undeprecated the interfaces in the 'bbb' package:  the promised
-  removal hasn't happened, and other core pacakges are still using
-  them.  Moved them into ``zope.component.interfaces``, their original
-  location, and the one from which consumers have been importing them.
-
 - Removed use of 'zope.deferredimport' by breaking import cycles.
 
 - Cleanup package documentation and changelog a bit. Add sphinx-based
@@ -19,6 +14,10 @@
 
 - Remove deprecated code.
 
+- Remove interfaces that were defined in the bbb package and deprecated
+  for years now. Other packages that still rely on them will be adapted
+  to this change.
+
 - Change package's mailing list address to zope-dev at zope.org, because
   zope3-dev at zope.org is now retired.
 

Modified: zope.component/trunk/src/zope/component/interfaces.py
===================================================================
--- zope.component/trunk/src/zope/component/interfaces.py	2009-03-07 10:49:40 UTC (rev 97615)
+++ zope.component/trunk/src/zope/component/interfaces.py	2009-03-07 10:56:09 UTC (rev 97616)
@@ -914,70 +914,9 @@
 # This interfaces are deprecated and meant to be (re)moved soon
 #
 
-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,
@@ -991,4 +930,4 @@
 
 #
 #
-########################################################################
\ No newline at end of file
+########################################################################



More information about the Checkins mailing list