class HelpController(BaseController):
    """
    This class takes care of all requester related to HELP system.
    """


    def __init__(self):
        BaseController.__init__(self)
        self.config = HelpConfig()


    @cherrypy.expose
    @handle_error(redirect=False)
    @using_template('overlay')
    def showOnlineHelp(self, section=None, subsection=None, **data):
        """
        This method generates the content of the overlay presenting Online-Help.
        In case both section and subsection are missing, we'll open main OnlineHelp page.
        
        :param section: section for which to open help
        :param subsection: subsection for which to open help
        """
        template_specification = self.fill_overlay_attributes(None, "TVB", "Online-Help", "help/online_help", "help")

        # Add URL of the help page
        template_specification["helpURL"] = self.config.get_help_url(section, subsection)

        return self.fill_default_attributes(template_specification)
Пример #2
0
class HelpController(BaseController):
    """
    This class takes care of all requester related to HELP system.
    """
    def __init__(self):
        BaseController.__init__(self)
        self.config = HelpConfig()

    @cherrypy.expose
    @handle_error(redirect=False)
    @using_template('overlay')
    def showOnlineHelp(self, section=None, subsection=None, **data):
        """
        This method generates the content of the overlay presenting Online-Help.
        In case both section and subsection are missing, we'll open main OnlineHelp page.
        
        :param section: section for which to open help
        :param subsection: subsection for which to open help
        """
        template_specification = self.fill_overlay_attributes(
            None, "TVB", "Online-Help", "help/online_help", "help")

        # Add URL of the help page
        template_specification["helpURL"] = self.config.get_help_url(
            section, subsection)

        return self.fill_default_attributes(template_specification)
 def __init__(self):
     BaseController.__init__(self)
     self.config = HelpConfig()
Пример #4
0
 def __init__(self):
     BaseController.__init__(self)
     self.config = HelpConfig()