[Zope3-checkins] CVS: Zope3/src/zope/app/browser/form - vocabularywidget.py:1.48
Stephan Richter
srichter@cosmos.phy.tufts.edu
Tue, 22 Jul 2003 07:03:26 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser/form
In directory cvs.zope.org:/tmp/cvs-serv4958/src/zope/app/browser/form
Modified Files:
vocabularywidget.py
Log Message:
Thanks to Steve, we are only removing security proxies now.
=== Zope3/src/zope/app/browser/form/vocabularywidget.py 1.47 => 1.48 ===
--- Zope3/src/zope/app/browser/form/vocabularywidget.py:1.47 Tue Jul 22 00:25:27 2003
+++ Zope3/src/zope/app/browser/form/vocabularywidget.py Tue Jul 22 07:03:21 2003
@@ -30,6 +30,7 @@
from zope.interface.declarations import directlyProvides
from zope.publisher.browser import BrowserView
from zope.component import getView
+from zope.security.proxy import trustedRemoveSecurityProxy
from zope.schema.interfaces import IIterableVocabulary, IVocabularyQuery
from zope.schema.interfaces import IIterableVocabularyQuery
from zope.schema.interfaces import ValidationError
@@ -89,8 +90,7 @@
# XXX: The hack of the century. After all ZCML attempts via ZCML failed,
# this is the only way I could find to make it work! (SR)
# Fred, please have a look at this.
- from zope.proxy import removeAllProxies
- view = removeAllProxies(view)
+ view = trustedRemoveSecurityProxy(view)
view.setField(field)
return view