[Zope3-checkins]
SVN: Zope3/branches/ZopeX3-3.0/src/zope/app/container/browser/adding.py
Converted removeAllProxies calls to the prefered
removeSecurityProxy.
Jim Fulton
jim at zope.com
Fri Aug 20 17:05:37 EDT 2004
Log message for revision 27196:
Converted removeAllProxies calls to the prefered removeSecurityProxy.
D src/zope/app/security/interfaces
D src/zope/app/security/interfaces/__init__.py
A + src/zope/app/security/interfaces.py
Converted a package with one module to a regulat module.
Changed:
U Zope3/branches/ZopeX3-3.0/src/zope/app/container/browser/adding.py
-=-
Modified: Zope3/branches/ZopeX3-3.0/src/zope/app/container/browser/adding.py
===================================================================
--- Zope3/branches/ZopeX3-3.0/src/zope/app/container/browser/adding.py 2004-08-20 20:29:43 UTC (rev 27195)
+++ Zope3/branches/ZopeX3-3.0/src/zope/app/container/browser/adding.py 2004-08-20 21:05:37 UTC (rev 27196)
@@ -22,7 +22,7 @@
import zope.security.checker
from zope.interface import implements
from zope.publisher.interfaces import IPublishTraverse
-from zope.proxy import removeAllProxies
+from zope.security.proxy import removeSecurityProxy
from zope.component.interfaces import IFactory
from zope.app.exception.interfaces import UserError
@@ -149,7 +149,7 @@
# Note that it is important to do this here, rather than
# in add, otherwise, someone might be able to trick add
# into unproxying an existing object,
- content = removeAllProxies(content)
+ content = removeSecurityProxy(content)
notify(ObjectCreatedEvent(content))
More information about the Zope3-Checkins
mailing list