[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication/Browser - Publication.py:1.1.2.7.6.2
Jim Fulton
jim@zope.com
Sat, 27 Apr 2002 12:59:23 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication/Browser
In directory cvs.zope.org:/tmp/cvs-serv26931/lib/python/Zope/App/ZopePublication/Browser
Modified Files:
Tag: SecurityProxy-branch
Publication.py
Log Message:
Moved security management modules to Zope.Security.
Added like_unto attribute to protect class so you can say that a class
has the same protections as another class::
<security:protectClass name=".RootFolder." like_unto=".Folder." />
Added some additional calls to removeAllProxies in some component
lookup code while debugging integration of new security model.
Added protections for BTree types.
=== Zope3/lib/python/Zope/App/ZopePublication/Browser/Publication.py 1.1.2.7.6.1 => 1.1.2.7.6.2 ===
from Zope.ComponentArchitecture import getRequestView
from Zope.Proxy.ContextWrapper import ContextWrapper
-from Zope.App.Security.SecurityManagement import getSecurityManager
from Zope.Proxy.ProxyIntrospection import removeAllProxies
class BrowserPublication(ZopeHTTPPublication):
@@ -43,7 +42,6 @@
if r[0] is ob: return r
wrapped = ContextWrapper(r[0], ob, name=None)
- #XXX getSecurityManager().validate(None, wrapped)
return (wrapped, r[1])
# For now, have a factory that returns a singleton