pickle.load(file) fails
Opened this issue · 0 comments
eivaremir commented
The following code must be defined outside the constructor
_roles = set()
_structure = defaultdict(set)
_grants = set()
If you try to save the state of the acl in a file and the load it again using picke.load(file), youll get an error saying these 3 attributes
are not defined, because when loading thru this way the constructor is not being executed.
Doing this im able to create a local backup of the acl and dont loosing it at runtime