예제 #1
0
def error(request):
    raise PublishError(public_msg="Oops, an error occured.")
예제 #2
0
파일: http.py 프로젝트: jsgf/imagestore2
 def __init__(self, allowed, public_msg=None, private_msg=None):
     PublishError.__init__(self, public_msg, private_msg)
     self.allowed = allowed
예제 #3
0
파일: http.py 프로젝트: jsgf/imagestore2
    def format(self):
        response = quixote.get_response()
        response.set_header('Allowed', ', '.join(self.allowed))

        return PublishError.format(self)
예제 #4
0
def publish_error(request):
    raise PublishError(public_msg="Publishing error raised by publish_error")