Commit bea204e6 authored by Chris McDonough's avatar Chris McDonough

This is a module used for backwards-compatibility aliasing. It potentially...

This is a module used for backwards-compatibility aliasing.  It potentially makes PythonMethods work with the current trunk, as well as solving some community issues with the import of the Eval class.
parent 9d77dcbb
# alias module for backwards compatibility
import RestrictedPython
Eval = RestrictedPython.Eval.RestrictionCapableEval
def careful_mul(env, *factors):
r = 1
for factor in factors:
r=r*factor
return r
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