Package omeroweb :: Package feedback :: Module views
[hide private]
[frames] | no frames]

Module views

source code

A view functions is simply a Python function that takes a Web request and returns a Web response. This response can be the HTML contents of a Web page, or a redirect, or the 404 and 500 error, or an XML document, or an image... or anything.

Functions [hide private]
 
thanks(request) source code
 
send_feedback(request) source code
 
send_comment(request) source code
 
custom_server_error(request, error500)
Custom 500 error handler.
source code
 
handler500(request) source code
 
handler404(request) source code
 
handlerInternalError(error) source code
Variables [hide private]
  logger = logging.getLogger('views-feedback')

Imports: sys, locale, datetime, traceback, logging, settings, template_loader, HttpResponse, HttpResponseRedirect, render_to_response, Context, page_not_found, server_error, debug, reverse, SendFeedback, ErrorForm, CommentForm


Function Details [hide private]

custom_server_error(request, error500)

source code 

Custom 500 error handler.

Templates: `500.html` Context: ErrorForm