[Zope3-checkins] CVS: Zope3/src/zope/app/dav - propfind.py:1.12.18.1

Garrett Smith garrett at mojave-corp.com
Sun Feb 8 23:32:16 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/dav
In directory cvs.zope.org:/tmp/cvs-serv11138/src/zope/app/dav

Modified Files:
      Tag: ozzope-widgets-branch
	propfind.py 
Log Message:

Continued refactoring of widgets. Now using view types to lookup widgets
when constructing forms instead of magic names. Next steps include
integration tests for registered widgets, fix existing tests, update
documentation, and fix vocab widgets.


=== Zope3/src/zope/app/dav/propfind.py 1.12 => 1.12.18.1 ===
--- Zope3/src/zope/app/dav/propfind.py:1.12	Sun Sep 21 13:32:04 2003
+++ Zope3/src/zope/app/dav/propfind.py	Sun Feb  8 23:31:45 2004
@@ -20,6 +20,7 @@
 from zope.proxy import removeAllProxies
 from zope.schema import getFieldNamesInOrder
 from zope.app.interfaces.container import IReadContainer
+from zope.app.interfaces.form import IEditWidget
 from zope.app.dav.globaldavschemaservice import availableNamespaces
 from zope.app.dav.globaldavschemaservice import queryInterface
 from zope.app.form.utility import setUpWidgets, getWidgetsDataFromAdapter
@@ -109,7 +110,7 @@
                 adapter = queryAdapter(self.context, iface, None)
                 initial = getWidgetsDataFromAdapter(
                     adapter, iface, names=avail.get(ns))
-                setUpWidgets(self, iface, initial=initial, \
+                setUpWidgets(self, iface, IEditWidget, initial=initial, \
                              names=avail.get(ns), force=True)
                 for p in avail.get(ns):
                     el = response.createElement('%s' % p )




More information about the Zope3-Checkins mailing list