[Zope-Checkins] CVS: Zope/lib/python/AccessControl - Implementation.py:1.5

Brian Lloyd brian at zope.com
Thu Jan 29 16:31:18 EST 2004


Update of /cvs-repository/Zope/lib/python/AccessControl
In directory cvs.zope.org:/tmp/cvs-serv25298/lib/python/AccessControl

Modified Files:
	Implementation.py 
Log Message:
fix always using Python policy


=== Zope/lib/python/AccessControl/Implementation.py 1.4 => 1.5 ===
--- Zope/lib/python/AccessControl/Implementation.py:1.4	Thu Jan 29 14:22:37 2004
+++ Zope/lib/python/AccessControl/Implementation.py	Thu Jan 29 16:31:18 2004
@@ -63,6 +63,10 @@
         if hasattr(mod, "initialize"):
             mod.initialize(impl)
 
+    from AccessControl.SecurityManager import setSecurityPolicy
+    policy = impl.ZopeSecurityPolicy(True, True)
+    setSecurityPolicy(policy)
+
     _implementation_set = 1
 
 _implementation_name = None




More information about the Zope-Checkins mailing list