Reputation: 1269
Expressions such as:
total_impact += impact
in my restricted env are not allowed by default and they cause the error:
NameError: name '_inplacevar_' is not defined
but I would like to allow such expressions. Is there anything that I can add to the restricted globals to allow it? Anything in RestrictedPython.Guards or RestrictedPython.Eval? I can't find it so far
Upvotes: 1
Views: 132