* fluent: General cleanup.

This commit is contained in:
2006-04-19 19:59:55 +00:00
parent 4541716f90
commit f45c9c6bf7
4 changed files with 42 additions and 26 deletions

View File

@@ -87,9 +87,14 @@ class WorkflowView (gtk.VBox):
exp.show()
self.pack_start(exp, expand=False, fill=False)
def button_click_handler(self, button):
function = button.function
def run_function(self, function):
logger.log('debug', 'Starting function: %s' % function.name)
function.run(self.workflow.app.current_data)
project = self.workflow.app.project
new_data = function.run(project.current_data)
if new_data != None:
project.current_data = new_data
logger.log('debug', 'Function ended: %s' % function.name)
def button_click_handler(self, button):
self.run_function(function = button.function)