This commit is contained in:
@@ -22,6 +22,7 @@ DATADIR = os.path.dirname(sys.modules['fluents'].__file__)
|
||||
ICONDIR = os.path.join(DATADIR,"..","icons")
|
||||
GLADEFILENAME = os.path.join(DATADIR, 'fluents.glade')
|
||||
|
||||
|
||||
class IconFactory:
|
||||
"""Factory for icons that ensures that each icon is only loaded once."""
|
||||
|
||||
@@ -43,6 +44,7 @@ class IconFactory:
|
||||
|
||||
icon_factory = IconFactory(ICONDIR)
|
||||
|
||||
|
||||
class TableSizeSelection(gtk.Window):
|
||||
|
||||
def __init__(self):
|
||||
|
||||
@@ -60,9 +60,7 @@ class Workflow:
|
||||
description = "Workflow Description"
|
||||
|
||||
def __init__(self):
|
||||
print "Setting stages"
|
||||
self.stages = []
|
||||
self.stages_by_id = {}
|
||||
|
||||
def get_data_file_name(self, filename):
|
||||
"""Checks if a file with the given name exists in the data directory.
|
||||
@@ -79,7 +77,7 @@ class Workflow:
|
||||
|
||||
def add_stage(self, stage):
|
||||
self.stages.append(stage)
|
||||
self.stages_by_id[stage.id] = stage
|
||||
#self.stages_by_id[stage.id] = stage
|
||||
|
||||
def print_tree(self):
|
||||
print self.name
|
||||
@@ -109,11 +107,9 @@ class Stage:
|
||||
self.id = id
|
||||
self.name = name
|
||||
self.tasks = []
|
||||
self.tasks_by_id = {}
|
||||
|
||||
def add_task(self, task):
|
||||
self.tasks.append(task)
|
||||
#self.tasks_by_id[task.id] = task
|
||||
|
||||
|
||||
class Task:
|
||||
@@ -151,7 +147,6 @@ class Validation:
|
||||
|
||||
|
||||
class WorkflowView (gtk.VBox):
|
||||
|
||||
def __init__(self, wf):
|
||||
gtk.VBox.__init__(self)
|
||||
self.workflow = wf
|
||||
@@ -201,8 +196,7 @@ class WorkflowView (gtk.VBox):
|
||||
return
|
||||
|
||||
task_result = task.run()
|
||||
|
||||
|
||||
|
||||
if task_result != None:
|
||||
main.project.add_data(parent_data, task_result, task.name)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user