[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/ Remove some of the last remaining BBB code that's a goner in 3.3.

Philipp von Weitershausen philikon at philikon.de
Tue Apr 25 04:46:30 EDT 2006


Log message for revision 67583:
  Remove some of the last remaining BBB code that's a goner in 3.3.
  

Changed:
  U   Zope3/branches/jim-adapter/src/zope/app/appsetup/appsetup.py
  U   Zope3/branches/jim-adapter/src/zope/app/publisher/browser/viewmeta.py
  U   Zope3/branches/jim-adapter/src/zope/copypastemove/__init__.py

-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/appsetup/appsetup.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/appsetup/appsetup.py	2006-04-25 08:30:01 UTC (rev 67582)
+++ Zope3/branches/jim-adapter/src/zope/app/appsetup/appsetup.py	2006-04-25 08:46:29 UTC (rev 67583)
@@ -233,19 +233,3 @@
 from zope.testing.cleanup import addCleanUp
 addCleanUp(reset)
 del addCleanUp
-
-
-# BBB
-import zope.deprecation
-IDatabaseOpenedEvent = interfaces.IDatabaseOpenedEvent
-DatabaseOpened = interfaces.DatabaseOpened
-IProcessStartingEvent = interfaces.IProcessStartingEvent
-ProcessStarting = interfaces.ProcessStarting
-zope.deprecation.deprecated(
-    ['IDatabaseOpenedEvent', 'DatabaseOpened',
-     'IProcessStartingEvent', 'ProcessStarting'
-     ],
-    "The database opened and process starting events have moved to "
-    "zope.app.appsetup.interfaces they will disappear from here in "
-    "in Zope 3.3."
-    )

Modified: Zope3/branches/jim-adapter/src/zope/app/publisher/browser/viewmeta.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/publisher/browser/viewmeta.py	2006-04-25 08:30:01 UTC (rev 67582)
+++ Zope3/branches/jim-adapter/src/zope/app/publisher/browser/viewmeta.py	2006-04-25 08:46:29 UTC (rev 67583)
@@ -90,19 +90,6 @@
          allowed_interface=None, allowed_attributes=None,
          attribute='__call__', menu=None, title=None, 
          ):
-
-    # BBB: Goes away in 3.3.
-    # Handle old default layer code. Code that reused the page directive will
-    # send a string.
-    if layer == 'default':
-        import warnings
-        warnings.warn(
-            'Strings as layer names are not supported anymore. In the case '
-            'of the `default` layer, please use the `IDefaultBrowserLayer` '
-            'instead. This support goes away in Zope 3.3.',
-            DeprecationWarning, 2)
-        layer = IDefaultBrowserLayer
-
     _handle_menu(_context, menu, title, [for_], name, permission, layer)
     required = {}
 

Modified: Zope3/branches/jim-adapter/src/zope/copypastemove/__init__.py
===================================================================
--- Zope3/branches/jim-adapter/src/zope/copypastemove/__init__.py	2006-04-25 08:30:01 UTC (rev 67582)
+++ Zope3/branches/jim-adapter/src/zope/copypastemove/__init__.py	2006-04-25 08:46:29 UTC (rev 67583)
@@ -611,19 +611,6 @@
         return self.context.get('clipboard', ())
 
 
-def rename(container, oldid, newid):
-    """Renames an item with oldid in the container to newid.
-
-    This function is deprecated. Use IContainerItemRenamer instead.
-    """
-    # BBB (remove in 3.3)
-    warnings.warn(
-        "rename is deprecated and will not be supported starting in "
-        "Zope 3.3. Use IContainerItemRenamer(container).renameItem "
-        "instead.", DeprecationWarning)
-    IContainerItemRenamer(container).renameItem(oldid, newid)
-
-
 class ExampleContainer(SampleContainer):
     # Sample container used for examples in doc stringss in this module
 



More information about the Zope3-Checkins mailing list