summaryrefslogtreecommitdiff
path: root/grc/python/Param.py
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2009-09-18 09:51:33 -0700
committerJosh Blum <josh@joshknows.com>2009-09-18 09:51:33 -0700
commit54f913876e5d92fa66f4bcf3a1c773a503e907f8 (patch)
treefc1cf0bc956bdd8e6ac53aa8ac24bed8f9e622f8 /grc/python/Param.py
parentd28d40d33dac481296e1f836ec57f1018041d418 (diff)
Re/evaluate the notebook blocks label because we dont garuntee the evaluation priority.
Meaning, we cant garuntee that the notebook block will be evaluated before this param, without explicitly calling evaluate on it when the value is needed.
Diffstat (limited to 'grc/python/Param.py')
-rw-r--r--grc/python/Param.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/python/Param.py b/grc/python/Param.py
index 1c15113152..34d5ab116b 100644
--- a/grc/python/Param.py
+++ b/grc/python/Param.py
@@ -385,7 +385,7 @@ class Param(_Param, _GUIParam):
try: notebook_block = filter(lambda b: b.get_id() == notebook_id, notebook_blocks)[0]
except: raise Exception, 'Notebook id "%s" is not an existing notebook id.'%notebook_id
#check that page index exists
- try: assert int(page_index) in range(len(notebook_block.get_param('labels').get_evaluated()))
+ try: assert int(page_index) in range(len(notebook_block.get_param('labels').evaluate()))
except: raise Exception, 'Page index "%s" is not a valid index number.'%page_index
return notebook_id, page_index
#########################