1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/ddc3b1579121/ changeset: ddc3b1579121 user: dannon date: 2013-02-06 03:11:32 summary: Allow dynamic_options to use $__user_email__ as a filter_value. This would enable tools to use dynamic options defined in a file listing user_specific options for a tool (file paths, etc). affected #: 1 file diff -r 6ff0b52b5850733ed05c06790b351a2bdf66de48 -r ddc3b1579121233cec5b4c6717d43c97ddc040bc lib/galaxy/tools/parameters/dynamic_options.py --- a/lib/galaxy/tools/parameters/dynamic_options.py +++ b/lib/galaxy/tools/parameters/dynamic_options.py @@ -53,8 +53,14 @@ self.keep = string_as_bool( elem.get( "keep", 'True' ) ) def filter_options( self, options, trans, other_values ): rval = [] + filter_value = self.value + try: + if trans.user.email: + filter_value = filter_value.replace('$__user_email__',trans.user.email) + except: + pass for fields in options: - if ( self.keep and fields[self.column] == self.value ) or ( not self.keep and fields[self.column] != self.value ): + if ( self.keep and fields[self.column] == filter_value ) or ( not self.keep and fields[self.column] != filter_value ): rval.append( fields ) return rval 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.