Exemple #1
0
def page_show(request):
    """Display a single page.

    :param request: A :class:`pyramid.request.Request` object.

    :type request: pyramid.request.Request
    :rtype: dict
    """
    page = page_get(request)
    return locals()
Exemple #2
0
def page_show(request):
    """Display a single page.

    :param request: A :class:`pyramid.request.Request` object.

    :type request: pyramid.request.Request
    :rtype: dict
    """
    page = page_get(request)
    return locals()
Exemple #3
0
def robots_show(request):
    """Display robots.txt.

    :param request: A :class:`pyramid.request.Request` object.

    :type request: pyramid.request.Request
    :rtype: dict
    """
    page = page_get(request, page='global/robots', namespace='internal')
    response = Response(page.body)
    response.content_type = 'text/plain'
    return response
Exemple #4
0
def robots_show(request):
    """Display robots.txt.

    :param request: A :class:`pyramid.request.Request` object.

    :type request: pyramid.request.Request
    :rtype: dict
    """
    page = page_get(request, page='global/robots', namespace='internal')
    response = Response(page.body)
    response.content_type = 'text/plain'
    return response