[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - editview.py:1.38

Jim Fulton jim at zope.com
Sun Sep 21 13:30:36 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv12203/src/zope/app/browser/form

Modified Files:
	editview.py 
Log Message:
Changed to use zope.app.publisher.browser.BrowserView, rather than
zope.publisher.browser.BrowserView so that the views are locations.

No longer need context wrappers methods.


=== Zope3/src/zope/app/browser/form/editview.py 1.37 => 1.38 ===
--- Zope3/src/zope/app/browser/form/editview.py:1.37	Thu Aug 28 18:40:25 2003
+++ Zope3/src/zope/app/browser/form/editview.py	Sun Sep 21 13:30:35 2003
@@ -19,12 +19,11 @@
 
 from zope.schema import getFieldNamesInOrder
 from zope.publisher.interfaces.browser import IBrowserPresentation
-from zope.publisher.browser import BrowserView
+from zope.app.publisher.browser import BrowserView
 from zope.security.checker import defineChecker, NamesChecker
 from zope.component.view import provideView
 from zope.component import getAdapter
 
-from zope.app.context import ContextWrapper
 from zope.app.i18n import ZopeMessageIDFactory as _
 from zope.app.interfaces.form import WidgetsError
 from zope.app.form.utility import setUpEditWidgets, applyWidgetsChanges
@@ -57,7 +56,7 @@
     def _setUpWidgets(self):
         adapted = getAdapter(self.context, self.schema)
         if adapted is not self.context:
-            adapted = ContextWrapper(adapted, self.context, name='(adapted)')
+            adapted.__parent__ = self.context
         self.adapted = adapted
         setUpEditWidgets(self, self.schema, names=self.fieldNames,
                          content=self.adapted)




More information about the Zope3-Checkins mailing list