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