Hello,

I found that it is possible for tool-xmls defined with <page> tags to also have 
multipage helps, but this feature is not really documented and also does not 
work because of a tiny bug. You can have multipage helps by writing something 
like this (if your tool has two <page>s):

<help>
     <page>
          Helptext for page 1
     </page>
     <page>

          Helptext for page 2
     </page>
</help>


But for it to work one has to fix the following: 
rev 13771:7a4d321c0e38
file lib/galaxy/tools/__init__.py
expression starting at line 1439:

            self.help_by_page = [ Template( rst_to_html( help_header + x + 
help_footer,
                                            input_encoding='utf-8', 
output_encoding='utf-8',
                                            default_filters=[ 'decode.utf8' ],
                                            encoding_errors='replace' ) )
                                  for x in self.help_by_page ]

The bracket is misplaced and the whole thing should instead be:

            self.help_by_page = [ Template( rst_to_html( help_header + x + 
help_footer),
                                            input_encoding='utf-8', 
output_encoding='utf-8',
                                            default_filters=[ 'decode.utf8' ],
                                            encoding_errors='replace' )
                                  for x in self.help_by_page ]

One question: <page> is deprecated, does this mean there will be no multipage 
tools in the future? Or will there be (or is already?) an alternative system?

Best,
Philipp
___________________________________________________________
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:
  http://lists.bx.psu.edu/

To search Galaxy mailing lists use the unified search at:
  http://galaxyproject.org/search/mailinglists/

Reply via email to