[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/utility/browser/__init__.py Just remove security proxies. It should be enough.

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Jul 8 18:19:29 EDT 2004


Log message for revision 26242:
Just remove security proxies. It should be enough.



-=-
Modified: Zope3/trunk/src/zope/app/utility/browser/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/utility/browser/__init__.py	2004-07-08 22:18:34 UTC (rev 26241)
+++ Zope3/trunk/src/zope/app/utility/browser/__init__.py	2004-07-08 22:19:29 UTC (rev 26242)
@@ -175,8 +175,7 @@
         folder = zapi.getParent(self.context)
         iface = folder.resolve(self.request['interface'])
         name = self.request['name']
-        # XXX should this be trustedRemoveSecurityProxy?
-        iface = removeAllProxies(iface)
+        iface = trustedRemoveSecurityProxy(iface)
         regstack = self.context.queryRegistrations(name, iface)
         form = zapi.getView(regstack, "ChangeRegistrations", self.request)
         form.update()



More information about the Zope3-Checkins mailing list