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()
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