def doc_url(request=None):  # pylint: disable=unused-argument
    """
    This function is added in the list of TEMPLATES 'context_processors' OPTION, which is a django setting for
    a tuple of callables that take a request object as their argument and return a dictionary of items
    to be merged into the RequestContext.

    This function returns a dict with get_online_help_info, making it directly available to all mako templates.

    Args:
        request: Currently not used, but is passed by django to context processors.
            May be used in the future for determining the language of choice.
    """
    return common_doc_url(request, CONFIG)
Example #2
0
def doc_url(request=None):  # pylint: disable=unused-argument
    """
    This function is added in the list of TEMPLATES 'context_processors' OPTION, which is a django setting for
    a tuple of callables that take a request object as their argument and return a dictionary of items
    to be merged into the RequestContext.

    This function returns a dict with get_online_help_info, making it directly available to all mako templates.

    Args:
        request: Currently not used, but is passed by django to context processors.
            May be used in the future for determining the language of choice.
    """
    return common_doc_url(request, CONFIG)
Example #3
0
 def _get_pdf_url():
     """ Helper method for getting the pdf url. """
     return common_doc_url(None,
                           CONFIG)['get_online_help_info']()['pdf_url']
Example #4
0
 def _get_doc_url(page_token=None):
     """ Helper method for getting the doc url. """
     return common_doc_url(
         None, CONFIG)['get_online_help_info'](page_token)['doc_url']
 def _get_pdf_url():
     """ Helper method for getting the pdf url. """
     return common_doc_url(None, CONFIG)['get_online_help_info']()['pdf_url']
 def _get_doc_url(page_token=None):
     """ Helper method for getting the doc url. """
     return common_doc_url(None, CONFIG)['get_online_help_info'](page_token)['doc_url']