Question: How to access user preferences from inside tool XML
0
christopherbare • 10 wrote:
I defined a form using Admin | Form Definitions | Manage form definitions, which contains settings for a tool. Now, I'm wondering if I can access that my the Galaxy Tool XML File.
What I'm hoping to do is fill in defaults settings for the tool's parameters and include an API key for accessing a remote web service that requires a login
The genomespace tool does something like this with OpenID credentials:
#set $username = $__user__.preferences.get( 'genomespace_username', None ) #set $token = $__user__.preferences.get( 'genomespace_token', None )
But, I'd like to do it with the User Information form, if possible. Any hints?