[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form -
editwizard.py:1.15 schemadisplay.py:1.11
Jim Fulton
jim at zope.com
Sun Sep 21 13:30:38 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv12223/src/zope/app/browser/form
Modified Files:
editwizard.py schemadisplay.py
Log Message:
No longer need context wrappers methods.
=== Zope3/src/zope/app/browser/form/editwizard.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/form/editwizard.py:1.14 Wed Aug 13 17:27:50 2003
+++ Zope3/src/zope/app/browser/form/editwizard.py Sun Sep 21 13:30:36 2003
@@ -23,7 +23,6 @@
from zope.app.pagetemplate.simpleviewclass import SimpleViewClass
from zope.app.pagetemplate.viewpagetemplatefile import ViewPageTemplateFile
from zope.security.checker import defineChecker, NamesChecker
-from zope.app.context import ContextWrapper
from zope.component.view import provideView
from zope.app.form.utility \
import setUpEditWidgets, getWidgetsData, applyWidgetsChanges
@@ -60,7 +59,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
if self.use_session:
=== Zope3/src/zope/app/browser/form/schemadisplay.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/form/schemadisplay.py:1.10 Thu Aug 7 13:40:28 2003
+++ Zope3/src/zope/app/browser/form/schemadisplay.py Sun Sep 21 13:30:36 2003
@@ -17,9 +17,8 @@
"""
from zope.schema import getFieldNamesInOrder
-from zope.app.context import ContextWrapper
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
@@ -49,7 +48,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
setUpDisplayWidgets(self, self.schema, names=self.fieldNames,
content=adapted)
More information about the Zope3-Checkins
mailing list