Example #1
0
def error500(error):

    # Record the error in the log
    logerr()

    # Return a standard error page
    return stderr("Internal Error", "An internal server error occured", 500)
Example #2
0
def error500(error):
	
	# Record the error in the log
	logerr()	

	# Return a standard error page		
	return stderr("Internal Error","An internal server error occured",500)
Example #3
0
def errorDaemonConnetionError(error):
    return stderr("Could not connect to desktop manager service", str(error),
                  500)
Example #4
0
def errorFatal(error):
    return stderr("Application error", str(error), 500)
Example #5
0
def error405(error):
    return stderr("Not allowed", "Your web browser sent the wrong HTTP method",
                  405)
Example #6
0
def error404(error):
    return stderr("Not found", "I could not find what you requested", 404)
Example #7
0
def error403(error):
    return stderr(
        "Permission Denied",
        "You do not have permission to access that page or perform that action.",
        403,
        template="no.html")
Example #8
0
def error400(error):
    return stderr("Bad Request", "Your request was invalid", 400)
Example #9
0
def errorDaemonConnetionError(error):
	return stderr("Could not connect to desktop manager service",str(error),500)
Example #10
0
def errorFatal(error):
	return stderr("Application error",str(error),500)
Example #11
0
def error405(error):
	return stderr("Not allowed","Your web browser sent the wrong HTTP method",405)
Example #12
0
def error404(error):
	return stderr("Not found","I could not find what you requested",404)
Example #13
0
def error403(error):
	return stderr("Permission Denied","You do not have permission to access that page or perform that action.",403,template="no.html")
Example #14
0
def error400(error):
	return stderr("Bad Request","Your request was invalid",400)