Skip to content

Commit

Permalink
This is a module used for backwards-compatibility aliasing. It potent…
Browse files Browse the repository at this point in the history
…ially makes PythonMethods work with the current trunk, as well as solving some community issues with the import of the Eval class.
  • Loading branch information
mcdonc committed Jun 18, 2001
1 parent 9d89cc8 commit 0ab7576
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions VSEval.py
@@ -0,0 +1,11 @@
# 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

0 comments on commit 0ab7576

Please sign in to comment.