[Zope-Checkins] SVN: Zope/branches/efge-five-events-work/lib/python/OFS/subscribers.py Move code around a bit.

Florent Guillaume fg at nuxeo.com
Thu Nov 10 08:41:16 EST 2005


Log message for revision 40024:
  Move code around a bit.
  

Changed:
  U   Zope/branches/efge-five-events-work/lib/python/OFS/subscribers.py

-=-
Modified: Zope/branches/efge-five-events-work/lib/python/OFS/subscribers.py
===================================================================
--- Zope/branches/efge-five-events-work/lib/python/OFS/subscribers.py	2005-11-10 13:06:53 UTC (rev 40023)
+++ Zope/branches/efge-five-events-work/lib/python/OFS/subscribers.py	2005-11-10 13:41:15 UTC (rev 40024)
@@ -139,12 +139,12 @@
 def callManageBeforeDelete(ob, item, container):
     """Compatibility subscriber for manage_beforeDelete.
     """
+    if container is None:
+        return
     if getattr(aq_base(ob), 'manage_beforeDelete', None) is None:
         return
-    if container is None:
-        return
+    maybeWarnDeprecated(ob, 'manage_beforeDelete')
     import OFS.ObjectManager # avoid circular imports
-    maybeWarnDeprecated(ob, 'manage_beforeDelete')
     try:
         ob.manage_beforeDelete(item, container)
     except OFS.ObjectManager.BeforeDeleteException:



More information about the Zope-Checkins mailing list