This repository has been archived on 2020-09-29. You can view files and clone it, but cannot push or open issues/pull-requests.
|
from pyramid.httpexceptions import HTTPFound
|
|
|
|
|
|
def redirect(self, url):
|
|
return HTTPFound(location=url)
|
|
|
|
|
|
def set_content_type(self, content_type):
|
|
self.request.response.content_type = content_type
|