commit/galaxy-central: dan: Allow rerun to access hidden datasets.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/5dcbbdfe1087/ changeset: 5dcbbdfe1087 user: dan date: 2012-11-06 18:57:23 summary: Allow rerun to access hidden datasets. affected #: 1 file diff -r 6624cd467f30618d5a1319e14b2a41ab7c6a2407 -r 5dcbbdfe1087e8d75f1df939d363b347e2764dd5 lib/galaxy/tools/parameters/basic.py --- a/lib/galaxy/tools/parameters/basic.py +++ b/lib/galaxy/tools/parameters/basic.py @@ -1434,7 +1434,7 @@ else: hid = str( hda.hid ) if not hda.dataset.state in [galaxy.model.Dataset.states.ERROR, galaxy.model.Dataset.states.DISCARDED] and \ - hda.visible and \ + ( hda.visible or ( value and hda in value and not hda.implicitly_converted_parent_datasets ) ) and \ trans.app.security_agent.can_access_dataset( current_user_roles, hda.dataset ): # If we are sending data to an external application, then we need to make sure there are no roles # associated with the dataset that restrict it's access from "public". @@ -1444,7 +1444,11 @@ continue if isinstance( hda.datatype, self.formats): selected = ( value and ( hda in value ) ) - field.add_option( "%s: %s" % ( hid, hda_name ), hda.id, selected ) + if hda.visible: + hidden_text = "" + else: + hidden_text = " (hidden)" + field.add_option( "%s:%s %s" % ( hid, hidden_text, hda_name ), hda.id, selected ) else: target_ext, converted_dataset = hda.find_conversion_destination( self.formats ) if target_ext: 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