summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grc/data/platforms/python/flow_graph.tmpl5
-rw-r--r--grc/src/gui/Messages.py10
-rw-r--r--grc/src/gui/NotebookPage.py1
-rw-r--r--grc/todo.txt1
4 files changed, 9 insertions, 8 deletions
diff --git a/grc/data/platforms/python/flow_graph.tmpl b/grc/data/platforms/python/flow_graph.tmpl
index 3589e564c..4cd4411a7 100644
--- a/grc/data/platforms/python/flow_graph.tmpl
+++ b/grc/data/platforms/python/flow_graph.tmpl
@@ -183,8 +183,9 @@ if __name__ == '__main__':
#if $parameters
parser = OptionParser()
#for $param in $parameters
- #if $param.get_param('type').get_value()
- parser.add_option("--$param.get_id()", dest="$param.get_id()", type="$param.get_param('type').get_value()", default=$param.get_make())
+ #set $type = $param.get_param('type').get_value()
+ #if $type
+ parser.add_option("--$param.get_id()", dest="$param.get_id()", type="$type", default=$param.get_make())
#silent $args.append('%s=options.%s'%($param.get_id(), $param.get_id()))
#end if
#end for
diff --git a/grc/src/gui/Messages.py b/grc/src/gui/Messages.py
index fd925fefc..bd7b4b2b7 100644
--- a/grc/src/gui/Messages.py
+++ b/grc/src/gui/Messages.py
@@ -59,11 +59,11 @@ def send_error_load(error):
traceback.print_exc()
def send_end_load():
- send(">>> Done\n")
+ send('>>> Done\n')
def send_fail_load(error):
- send('Parser Error: %s\n'%error)
- send(">>> Failue\n")
+ send('Error: %s\n'%error)
+ send('>>> Failue\n')
traceback.print_exc()
################# functions for generating flow graphs ########################################
@@ -72,7 +72,7 @@ def send_start_gen(file_path):
def send_fail_gen(error):
send('Generate Error: %s\n'%error)
- send(">>> Failue\n")
+ send('>>> Failue\n')
traceback.print_exc()
################# functions for executing flow graphs ########################################
@@ -83,7 +83,7 @@ def send_verbose_exec(verbose):
send(verbose)
def send_end_exec():
- send("\n>>> Done\n")
+ send('\n>>> Done\n')
################# functions for saving flow graphs ########################################
def send_fail_save(file_path):
diff --git a/grc/src/gui/NotebookPage.py b/grc/src/gui/NotebookPage.py
index 00d811068..50a1216f9 100644
--- a/grc/src/gui/NotebookPage.py
+++ b/grc/src/gui/NotebookPage.py
@@ -45,6 +45,7 @@ class NotebookPage(gtk.HBox):
self.main_window = main_window
self.set_file_path(file_path)
file_path = file_path or flow_graph.get_parent().get_default_flow_graph()
+ open(file_path, 'r') #test open
############################################################
from .. utils import converter
converter.convert(file_path, flow_graph.get_parent())
diff --git a/grc/todo.txt b/grc/todo.txt
index 5ba436b3f..d9b03d803 100644
--- a/grc/todo.txt
+++ b/grc/todo.txt
@@ -32,7 +32,6 @@
-special connection validation rules for disabled blocks
-threads dont die on exit in probe and variable sink
-overloaded gui classes for each platform, move param input objects into overloaded
--proper error handling when file DNE -> currently dtd check fails first
##################################################
# External