Page Contents

Previous topic

omeroweb package

Next topic

omeroweb.feedback.templatetags package

This Page

omeroweb.feedback package

Submodules

omeroweb.feedback.forms module

class omeroweb.feedback.forms.CommentForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=None, empty_permitted=False)

Bases: django.forms.forms.Form

base_fields = {'email': <django.forms.fields.CharField object at 0x1eee1c10>, 'comment': <django.forms.fields.CharField object at 0x1eee1d50>}
media
class omeroweb.feedback.forms.ErrorForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.util.ErrorList'>, label_suffix=None, empty_permitted=False)

Bases: django.forms.forms.Form

base_fields = {'email': <django.forms.fields.CharField object at 0x1eee1990>, 'comment': <django.forms.fields.CharField object at 0x1eee1b10>, 'error': <django.forms.fields.CharField object at 0x1eee1b90>}
media

omeroweb.feedback.sendfeedback module

class omeroweb.feedback.sendfeedback.SendFeedback(feedback_url)

Bases: object

conn = None
send_feedback(error=None, comment=None, email=None, user_agent='')

omeroweb.feedback.urls module

omeroweb.feedback.views module

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.

omeroweb.feedback.views.csrf_failure(request, reason='')
omeroweb.feedback.views.custom_server_error(request, error500)

Custom 500 error handler.

Templates: 500.html Context: ErrorForm

omeroweb.feedback.views.get_user_agent(request)
omeroweb.feedback.views.handler404(request)
omeroweb.feedback.views.handler500(request)

Custom error handling. Catches errors that are not handled elsewhere. NB: This only gets used by Django if omero.web.debug False (production use) If debug is True, Django returns it’s own debug error page

omeroweb.feedback.views.handlerInternalError(request, error)

This is mostly used in an “object not found” situation, So there is no feedback form - simply display “not found” message. If the call was AJAX, we return the message in a 404 response. Otherwise return an html page, with 404 response.

omeroweb.feedback.views.send_comment(request)
omeroweb.feedback.views.send_feedback(request)

Module contents