Re: [galaxy-dev] Converting __oc__ and __cc__ back to curly braces?

2012-11-16 Thread Samuel Lampa
On 11/16/2012 08:50 PM, Daniel Blankenberg wrote: You can import and use the restore_text function from galaxy.lib.util to restore the characters. Thanks! I guess this will be a good starter at least, although I might play a bit with the sanitizers as well, as you hint about below. Anyway,

Re: [galaxy-dev] Converting __oc__ and __cc__ back to curly braces?

2012-11-16 Thread Daniel Blankenberg
Minor correction for the import, you could do: from galaxy.util import restore_text in a tool executed from Galaxy. On Nov 16, 2012, at 2:50 PM, Daniel Blankenberg wrote: > Hi Samuel, > > You can import and use the restore_text function from galaxy.lib.util to > restore the characters. > >

Re: [galaxy-dev] Converting __oc__ and __cc__ back to curly braces?

2012-11-16 Thread Daniel Blankenberg
Hi Samuel, You can import and use the restore_text function from galaxy.lib.util to restore the characters. Alternatively, you may want to look at customizing the sanitizer you are using for the tool input, e.g. only sanitize the quote character that you are using around the command-line arg