[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py Removed unneeded removeAllProxies calls.

Jim Fulton jim at zope.com
Fri Aug 20 17:47:26 EDT 2004


Log message for revision 27200:
  Removed unneeded removeAllProxies calls.
  


Changed:
  U   Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py


-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py	2004-08-20 21:42:45 UTC (rev 27199)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py	2004-08-20 21:47:26 UTC (rev 27200)
@@ -14,7 +14,6 @@
 $Id$
 """
 from xml.dom import minidom
-from zope.proxy import removeAllProxies
 from zope.schema import getFieldNamesInOrder
 from zope.app import zapi
 from zope.app.container.interfaces import IReadContainer
@@ -132,8 +131,8 @@
                         value = response.createTextNode(value)
                         el.appendChild(value)
                     else:
-                        if isinstance(removeAllProxies(value), minidom.Node):
-                            el.appendChild(removeAllProxies(value))
+                        if zapi.isinstance(value, minidom.Node):
+                            el.appendChild(value)
                         else:
                             # Try to string-ify
                             value = str(getattr(self, p+'_widget'))



More information about the Zope3-Checkins mailing list