From 490038d9bf909a560e6b4f80b112097accd7908c Mon Sep 17 00:00:00 2001 From: einarr Date: Tue, 25 Apr 2006 18:06:21 +0000 Subject: [PATCH] Refreshing workflows now works. --- system/fluents.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/system/fluents.py b/system/fluents.py index d96b361..e568761 100755 --- a/system/fluents.py +++ b/system/fluents.py @@ -93,6 +93,7 @@ class FluentApp: 'on_zoom_out_button_clicked' : (self.on_multiple_view), 'on_new1_activate' : (self.on_create_project), 'on_button_new_clicked' : (self.on_create_project), + 'on_workflow_refresh_clicked' : (self.on_workflow_refresh_clicked), 'on_about1_activate' : (self.on_help_about)} self.widget_tree.signal_autoconnect(signals) @@ -123,3 +124,11 @@ class FluentApp: about = widget_tree.get_widget('aboutdialog') about.run() + def on_workflow_refresh_clicked(self, *ignored): + try: + reload(sys.modules[self.workflow.__class__.__module__]) + except Exception, e: + logger.log('warning', 'Cannot reload workflow') + logger.log('warning', e) + else: + logger.log('notice', 'Successfully reloaded workflow')