[Checkins] SVN: Products.ExternalEditor/trunk/Products/ExternalEditor/ExternalEditor.py make sure this 'and' short-circuits before the Z2-style interface check if we have Z3 interfaces, b/c in Zope 2.12+ we *only* have z3 interfaces

David Glick davidglick at onenw.org
Sun Aug 23 20:42:26 EDT 2009


Log message for revision 103121:
  make sure this 'and' short-circuits before the Z2-style interface check if we have Z3 interfaces, b/c in Zope 2.12+ we *only* have z3 interfaces

Changed:
  U   Products.ExternalEditor/trunk/Products/ExternalEditor/ExternalEditor.py

-=-
Modified: Products.ExternalEditor/trunk/Products/ExternalEditor/ExternalEditor.py
===================================================================
--- Products.ExternalEditor/trunk/Products/ExternalEditor/ExternalEditor.py	2009-08-23 20:26:11 UTC (rev 103120)
+++ Products.ExternalEditor/trunk/Products/ExternalEditor/ExternalEditor.py	2009-08-24 00:42:25 UTC (rev 103121)
@@ -215,7 +215,7 @@
             raise 'BadRequest', 'Object does not support external editing'
 
         if (HAVE_Z3_IFACE and IStreamIterator.providedBy(body) or
-            not HAVE_Z3_IFACE and IStreamIterator.isImplementedBy(body)):
+            (not HAVE_Z3_IFACE) and IStreamIterator.isImplementedBy(body)):
             # We need to manage our content-length because we're streaming.
             # The content-length should have been set in the response by
             # the method that returns the iterator, but we need to fix it up



More information about the Checkins mailing list