commit/galaxy-central: dannon: Slight cleanup of the previous workflow share removal commit.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/87d5491cc3fe/ changeset: 87d5491cc3fe user: dannon date: 2012-02-02 21:16:29 summary: Slight cleanup of the previous workflow share removal commit. affected #: 1 file diff -r 0a001dea361385d107989740582f855aa2b71dc4 -r 87d5491cc3fef55931c09eb6bd688d1b10e946f5 lib/galaxy/web/controllers/workflow.py --- a/lib/galaxy/web/controllers/workflow.py +++ b/lib/galaxy/web/controllers/workflow.py @@ -290,9 +290,7 @@ @web.require_login( "use Galaxy workflows" ) def sharing( self, trans, id, **kwargs ): """ Handle workflow sharing. """ - session = trans.sa_session - if 'unshare_me' in kwargs: # Remove self from shared associations with workflow. stored = self.get_stored_workflow(trans, id, False, True) @@ -332,9 +330,8 @@ if stored.importable and not stored.slug: self._make_item_accessible( trans.sa_session, stored ) - session.flush() - - return trans.fill_template( "/workflow/sharing.mako", use_panels=True, item=stored ) + session.flush() + return trans.fill_template( "/workflow/sharing.mako", use_panels=True, item=stored ) @web.expose @web.require_login( "to import a workflow", use_panels=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.
participants (1)
-
Bitbucket