[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/ZopePublication - PublicationTraverse.py:1.1.2.14.2.2 ZopePublication.py:1.1.2.35.2.2

Jim Fulton jim@zope.com
Sat, 27 Apr 2002 12:59:23 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/ZopePublication
In directory cvs.zope.org:/tmp/cvs-serv26931/lib/python/Zope/App/ZopePublication

Modified Files:
      Tag: SecurityProxy-branch
	PublicationTraverse.py ZopePublication.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/PublicationTraverse.py 1.1.2.14.2.1 => 1.1.2.14.2.2 ===
 from Zope.Publisher.Browser.IBrowserPublisher import IBrowserPublisher
 from Zope.ComponentArchitecture import getRequestView
-from Zope.App.Security.SecurityManagement import getSecurityManager
 from Zope.Publisher.Exceptions import NotFound
 from types import StringTypes
 from Zope.Proxy.ContextWrapper import ContextWrapper, getWrapperContext
@@ -108,7 +107,6 @@
 
     def _wrap(self, ob, parent, name, nm):
         wrapped = ContextWrapper(ob, parent, name=name)
-        #XXX getSecurityManager().validate(nm, wrapped)
         return wrapped
 
     def _traverseview(self, request, ob, name):


=== Zope3/lib/python/Zope/App/ZopePublication/ZopePublication.py 1.1.2.35.2.1 => 1.1.2.35.2.2 ===
 from Zope.Publisher.mapply import mapply
 from Zope.Publisher.Exceptions import Retry
-from Zope.App.Security.SecurityManagement import getSecurityManager
-from Zope.App.Security.SecurityManagement import newSecurityManager
+from Zope.Security.SecurityManagement import getSecurityManager
+from Zope.Security.SecurityManagement import newSecurityManager
 from Zope.App.Security.PrincipalRegistry import principalRegistry as prin_reg
 from Zope.Exceptions import Unauthorized