[Zope3-checkins] SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py Merged from trunk:

Jim Fulton jim at zope.com
Fri Jul 9 18:27:03 EDT 2004


Log message for revision 26380:
Merged from trunk:

  r26364 | jim | 2004-07-09 15:36:39 -0400 (Fri, 09 Jul 2004) | 3 lines

Removed DWIM callable check. (It happened to do the Wrong Thing for
proxied data.)




-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py	2004-07-09 22:26:09 UTC (rev 26379)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/dav/propfind.py	2004-07-09 22:27:02 UTC (rev 26380)
@@ -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