Commit d5a0980c authored by matt@zope.com's avatar matt@zope.com

Reenable C security manager load; set ZOPE_SECURITY_POLICY=PYTHON in environment

to override.
parent 0fd27e29
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''short description __doc__='''short description
$Id: SecurityManager.py,v 1.9 2001/10/26 22:50:22 jim Exp $''' $Id: SecurityManager.py,v 1.10 2001/10/30 19:27:55 matt Exp $'''
__version__='$Revision: 1.9 $'[11:-2] __version__='$Revision: 1.10 $'[11:-2]
import ZopeSecurityPolicy, os, string import ZopeSecurityPolicy, os, string
...@@ -269,7 +269,7 @@ class SecurityManager: ...@@ -269,7 +269,7 @@ class SecurityManager:
try: try:
raise ImportError # disable C optimization #raise ImportError # uncomment to disable C optimization
import os import os
if os.environ.get("ZOPE_SECURITY_POLICY", None) == "PYTHON": if os.environ.get("ZOPE_SECURITY_POLICY", None) == "PYTHON":
raise ImportError # :) raise ImportError # :)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment