[Zope3-checkins] CVS: Zope3/src/zope/security/examples - sandbox_security.py:1.1.2.2
Jim Fulton
jim@zope.com
Tue, 24 Dec 2002 07:52:00 -0500
Update of /cvs-repository/Zope3/src/zope/security/examples
In directory cvs.zope.org:/tmp/cvs-serv1158/src/zope/security/examples
Modified Files:
Tag: NameGeddon-branch
sandbox_security.py
Log Message:
Searched for and changed over 1200 references to Zope.something.
Most of these were either comments, doc strings, or permission ids.
Many were imports or ids in zcml. (much zcml fixup is still needed.
=== Zope3/src/zope/security/examples/sandbox_security.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/security/examples/sandbox_security.py:1.1.2.1 Mon Dec 23 14:33:16 2002
+++ Zope3/src/zope/security/examples/sandbox_security.py Tue Dec 24 07:51:29 2002
@@ -1,5 +1,7 @@
import zope.security.examples.sandbox
-from Zope.Security import ISecurityPolicy, Checker, IChecker
+
+# XXX These imports are wrong and were wrong before the renaming
+from zope.security import ISecurityPolicy, Checker, IChecker
#################################
# 1. map permissions to actions
@@ -117,8 +119,8 @@
def wire_security():
- from Zope.Security import SecurityManagement
- SecurityManagement.setSecurityPolicy(SimulationSecurityPolicy())
+ from zope.security import securitymanagement
+ securitymanagement.setSecurityPolicy(SimulationSecurityPolicy())
import zope.security.examples.sandbox