Evaluation fix in param.to_code().
authorJosh Blum <josh@joshknows.com>
Wed, 2 Sep 2009 23:58:15 +0000 (16:58 -0700)
committerJosh Blum <josh@joshknows.com>
Wed, 2 Sep 2009 23:58:15 +0000 (16:58 -0700)
commit56a58932701c981e55972ad994d397733edb8c75
treecd326a9a553f287450795a08e0eeff3308d8e9f0
parent30513fdc9afa3d8e9d4dce4214299d89aed3c409
Evaluation fix in param.to_code().

Dont force an evaluation in to code unless the type is string or list.
Not doing so forces the variables to call evaluate before the namespace was bootstrapped.

This fixes a bug that came up when the validate was replaced with rewrite in flowgraph.import_data().
By replacing the validate, evaluate was only called once, and the namespace was not bootstrapped.
grc/python/Param.py