1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/9259d005adc8/ changeset: r5180:9259d005adc8 user: dannon date: 2011-03-05 17:47:12 summary: Initial commit of workflows API. Supports simple execution, multiple input datasets. Does not support runtime tool parameter modification. affected #: 4 files (263 bytes) --- a/lib/galaxy/web/buildapp.py Sat Mar 05 11:31:41 2011 -0500 +++ b/lib/galaxy/web/buildapp.py Sat Mar 05 11:47:12 2011 -0500 @@ -115,6 +115,7 @@ webapp.api_mapper.resource( 'request_type', 'request_types', path_prefix='/api' ) webapp.api_mapper.resource( 'role', 'roles', path_prefix='/api' ) webapp.api_mapper.resource( 'user', 'users', path_prefix='/api' ) + webapp.api_mapper.resource( 'workflow', 'workflows', path_prefix='/api' ) webapp.finalize_config() # Wrap the webapp in some useful middleware --- a/lib/galaxy/web/framework/__init__.py Sat Mar 05 11:31:41 2011 -0500 +++ b/lib/galaxy/web/framework/__init__.py Sat Mar 05 11:47:12 2011 -0500 @@ -705,23 +705,25 @@ dbnames.extend( util.dbnames ) return dbnames - + def db_dataset_for( self, dbkey ): """ Returns the db_file dataset associated/needed by `dataset`, or `None`. """ - # If no history, return None. if self.history is None: return None - + if isinstance(self.history, Bunch): + # The API presents a Bunch for a history. Until the API is + # more fully featured for handling this, also return None. + return None datasets = self.sa_session.query( self.app.model.HistoryDatasetAssociation ) \ .filter_by( deleted=False, history_id=self.history.id, extension="len" ) for ds in datasets: if dbkey == ds.dbkey: return ds return None - + def request_types(self): if self.sa_session.query( self.app.model.RequestType ).filter_by( deleted=False ).count() > 0: return True 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.