1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/20d6c7849901/ Changeset: 20d6c7849901 User: dannon Date: 2014-06-06 21:36:07 Summary: Add Workflow.has_outputs_defined to the Workflow model. Affected #: 2 files diff -r c113771db6b2f50800f045e7b74a8d650c0474e8 -r 20d6c7849901c2669562ee6c0ccbb5089372ec03 lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -2978,6 +2978,16 @@ self.has_errors = None self.steps = [] + def has_outputs_defined(self): + """ + Returns true or false indicating whether or not a workflow has outputs defined. + """ + for step in self.steps: + if step.workflow_outputs: + return True + return False + + class WorkflowStep( object ): diff -r c113771db6b2f50800f045e7b74a8d650c0474e8 -r 20d6c7849901c2669562ee6c0ccbb5089372ec03 lib/galaxy/model/mapping.py --- a/lib/galaxy/model/mapping.py +++ b/lib/galaxy/model/mapping.py @@ -1915,10 +1915,7 @@ order_by=asc(model.WorkflowStep.table.c.order_index), cascade="all, delete-orphan", lazy=False ), - # outputs = relation( WorkflowOutput, backref='workflow', - # primaryjoin=(Workflow.table.c.id == WorkflowStep.table.c.workflow_id), - # secondaryjoin=(WorkflowStep.table.c.id == WorkflowOutput.table.c.workflow_step_id)) - ) ) + ) ) mapper( model.WorkflowStep, model.WorkflowStep.table, properties=dict( @@ -2140,9 +2137,9 @@ def db_next_hid( self ): """ db_next_hid( self ) - + Override __next_hid to generate from the database in a concurrency safe way. - Loads the next history ID from the DB and returns it. + Loads the next history ID from the DB and returns it. It also saves the future next_id into the DB. :rtype: int Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.