Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Refreshing workflows now works.

This commit is contained in:
Einar Ryeng 2006-04-25 18:06:21 +00:00
parent 3e5be133ad
commit 490038d9bf
1 changed files with 9 additions and 0 deletions

View File

@ -93,6 +93,7 @@ class FluentApp:
'on_zoom_out_button_clicked' : (self.on_multiple_view), 'on_zoom_out_button_clicked' : (self.on_multiple_view),
'on_new1_activate' : (self.on_create_project), 'on_new1_activate' : (self.on_create_project),
'on_button_new_clicked' : (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)} 'on_about1_activate' : (self.on_help_about)}
self.widget_tree.signal_autoconnect(signals) self.widget_tree.signal_autoconnect(signals)
@ -123,3 +124,11 @@ class FluentApp:
about = widget_tree.get_widget('aboutdialog') about = widget_tree.get_widget('aboutdialog')
about.run() 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')