[Zope3-checkins] CVS: Zope3/src/zope/security/examples - sandbox_security.py:1.4
Jim Fulton
jim@zope.com
Mon, 30 Dec 2002 22:35:45 -0500
Update of /cvs-repository/Zope3/src/zope/security/examples
In directory cvs.zope.org:/tmp/cvs-serv32330/src/zope/security/examples
Modified Files:
sandbox_security.py
Log Message:
More renaming.
=== Zope3/src/zope/security/examples/sandbox_security.py 1.3 => 1.4 ===
--- Zope3/src/zope/security/examples/sandbox_security.py:1.3 Fri Dec 27 12:03:23 2002
+++ Zope3/src/zope/security/examples/sandbox_security.py Mon Dec 30 22:35:14 2002
@@ -1,6 +1,6 @@
import sandbox
from zope.security.interfaces import ISecurityPolicy, IChecker
-from zope.security import securitymanagement, checker
+from zope.security import management, checker
#################################
# 1. map permissions to actions
@@ -118,8 +118,7 @@
def wire_security():
- from zope.security import securitymanagement
- securitymanagement.setSecurityPolicy(SimulationSecurityPolicy())
+ management.setSecurityPolicy(SimulationSecurityPolicy())
import zope.security.examples.sandbox
@@ -141,7 +140,7 @@
sandbox.Sandbox.addAgent = addAgent
def setupAgent(self, agent):
- securitymanagement.newSecurityManager(agent)
+ management.newSecurityManager(agent)
sandbox.TimeGenerator.setupAgent = setupAgent