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

Shane Hathaway shane at zope.com
Tue Feb 3 15:30:36 EST 2004


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

Modified Files:
      Tag: Zope-2_7-branch
	Implementation.py 
Log Message:
Until now, the security-policy-implementation directive had no effect.

When Implementation.py set the default policy, it set the
_implementation_set flag, preventing further changes.  Now the flag
gets reset so that the implementation can be changed from the default.
Also, Zope.Startup.run.configure() was not applying the security
options.

It might be a good idea to raise an error when you try to change the
security implementation more than once, rather than ignore the attempt.



=== Zope/lib/python/AccessControl/Implementation.py 1.1.2.6 => 1.1.2.7 ===
--- Zope/lib/python/AccessControl/Implementation.py:1.1.2.6	Thu Jan 29 16:30:47 2004
+++ Zope/lib/python/AccessControl/Implementation.py	Tue Feb  3 15:30:06 2004
@@ -98,6 +98,9 @@
 # start with the default, mostly because we need something for the tests
 setImplementation("C")
 
+# allow the implementation to change from the default
+_implementation_set = 0
+
 from DocumentTemplate import DT_Util
 from ZopeGuards import safe_builtins
 from types import FunctionType




More information about the Zope-Checkins mailing list