[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/dav/propfind.py Removed DWIM callable check. (It happened to do the Wrong Thing for

Jim Fulton jim at zope.com
Fri Jul 9 15:36:39 EDT 2004


Log message for revision 26364:
Removed DWIM callable check. (It happened to do the Wrong Thing for
proxied data.)



-=-
Modified: Zope3/trunk/src/zope/app/dav/propfind.py
===================================================================
--- Zope3/trunk/src/zope/app/dav/propfind.py	2004-07-09 19:28:16 UTC (rev 26363)
+++ Zope3/trunk/src/zope/app/dav/propfind.py	2004-07-09 19:36:39 UTC (rev 26364)
@@ -115,12 +115,8 @@
                 adapter = iface(self.context, None)
                 initial = {}
                 for name in avail.get(ns):
-                    attr = getattr(adapter, name, None)
-                    if attr is not None:
-                        if callable(attr):
-                            value = attr()
-                        else:
-                            value = attr
+                    value = getattr(adapter, name, None)
+                    if value is not None:
                         initial[name] = value
                 setUpWidgets(self, iface, IDAVWidget,
                     ignoreStickyValues=True, initial=initial, 



More information about the Zope3-Checkins mailing list