Hi,
I have recently upgraded Galaxy from a version I had last year. In my tool xml file I could state:
${ __app__.model.User.get( $__user_id__ ).api_keys[0].key }
in the <command> section to get the user's API. However, after updating to the current version of Galaxy I get the following error when using this entry in the xml file:
Traceback (most recent call last):
File "/home/bmladmin/galaxy-dist/lib/galaxy/jobs/runners/__init__.py", line 153, in prepare_job
job_wrapper.prepare()
File "/home/bmladmin/galaxy-dist/lib/galaxy/jobs/__init__.py", line 712, in prepare
self.command_line, self.extra_filenames = tool_evaluator.build()
File "/home/bmladmin/galaxy-dist/lib/galaxy/tools/evaluation.py", line 348, in build
self.__build_command_line( )
File "/home/bmladmin/galaxy-dist/lib/galaxy/tools/evaluation.py", line 364, in __build_command_line
command_line = fill_template( command, context=param_dict )
File "/home/bmladmin/galaxy-dist/lib/galaxy/util/template.py", line 9, in fill_template
return str( Template( source=template_text, searchList=[context] ) )
File "/home/bmladmin/galaxy-dist/eggs/Cheetah-2.2.2-py2.7-linux-x86_64-ucs4.egg/Cheetah/Template.py", line 1004, in __str__
return getattr(self, mainMethName)()
File "cheetah_DynamicallyCompiledCheetahTemplate_1407207170_7_53169.py", line 92, in respond
NotFound: cannot find 'get' while searching for 'get'
Any ideas?
Thanks
Neil