Commit d2653774 authored by Vincent Pelletier's avatar Vincent Pelletier

ERP5Type.patches.Restricted: Allow access to hash instances.

parent 3b9b48b9
......@@ -194,6 +194,10 @@ ContainerAssertions[datetime.timedelta] = 1
ContainerAssertions[datetime.tzinfo] = 1
allow_module('difflib')
allow_module('hashlib')
import hashlib
# XXX: assumes all hash types share the same base class (this is at least true
# for md5 and sha1/224/256/384/512)
allow_type(type(hashlib.md5()))
allow_module('time')
allow_module('urlparse')
allow_module('struct')
......
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