Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Functions which doesn't require inputs will now run with data selected

This commit is contained in:
Reidar Strand Hagen 2006-05-03 14:47:55 +00:00
parent fb7128138e
commit 338778d7b1
1 changed files with 3 additions and 2 deletions

View File

@ -177,10 +177,11 @@ class WorkflowView (gtk.VBox):
argcount =function.run.func_code.co_argcount - 1 argcount =function.run.func_code.co_argcount - 1
if argcount != len(parent_data): if argcount != len(parent_data) and argcount != 0:
logger.log('warning','Method requires ' + str(argcount) + ' Data. ' + str(len(parent_data)) + ' selected') logger.log('warning','Method requires ' + str(argcount) + ' Data. ' + str(len(parent_data)) + ' selected')
return return
if not project.current_data:
if not project.current_data or argcount == 0:
new_data = function.run() new_data = function.run()
else: else:
new_data = function.run(*project.current_data) new_data = function.run(*project.current_data)