Commit 488fc7da authored by Georgios Dagkakis's avatar Georgios Dagkakis

ERP5Type: Allow PythonScripts to access hmac module and HMAC class

parent ae914b02
......@@ -236,6 +236,12 @@ safe_builtins['__import__'] = guarded_import
ModuleSecurityInfo('transaction').declarePublic('doom')
import hmac
allow_module('hmac')
# HMAC does not sub-class object so ContainerAssertions
# does not work
hmac.HMAC.__allow_access_to_unprotected_subobjects__ = 1
import decimal
allow_module('decimal')
ContainerAssertions[decimal.Decimal] = 1
......
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