Commit c03dd3c4 authored by Boxiang Sun's avatar Boxiang Sun

hardcode Acquisition to use Python implementation by default

parent 7b33b1af
......@@ -33,13 +33,15 @@ class BaseRestrictedDTML(object):
# This does not respect the security policy as set by AccessControl. Instead
# it only deals with the C module being compiled or not.
try:
from AccessControl.cAccessControl import RestrictedDTMLMixin
except ImportError:
RestrictedDTML = BaseRestrictedDTML
else:
class RestrictedDTML(RestrictedDTMLMixin, BaseRestrictedDTML):
"""C version of RestrictedDTML."""
# Pyston change: hardcoded to use Python implementation
# try:
# from AccessControl.cAccessControl import RestrictedDTMLMixin
# except ImportError:
# RestrictedDTML = BaseRestrictedDTML
# else:
# class RestrictedDTML(RestrictedDTMLMixin, BaseRestrictedDTML):
# """C version of RestrictedDTML."""
RestrictedDTML = BaseRestrictedDTML
# Add security testing capabilities
......
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