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:

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to