Skipole WSGI generator.

Topics:

Introduction Getting Started Your Code skiadmin start_call submit_data end_call Exceptions PageData SectionData skicall Serving wsgi Code Examples

Development at GitHub:

github.com/bernie-skipole/skipole

FailPage

This exception can be imported using:

from skipole import FailPage

It has arguments:

FailPage(message = '', section='', widget='', failpage=None)

When a responder is created in the admin session, it is set with a number of parameters. If it is a responder which calls your submit_data function, then it will also require the ident of a failure page.

FailPage is an Exception class that, being raised, makes the Responder call its failure page with an error message rather than passing the call on to the responder's target page.

It takes arguments - message, section, widget and failpage.

Their default values are empty, leave as empty if you do not wish to pass any information. However if possible:

message - An error message string. If missing, the display widget's default 'show_error' text will be shown.

section - If the display widget is in a section this should be the section alias, if it is not, leave as an empty string.

widget - The name of the widget in the failure page where this message will be displayed. How the message is displayed will depend on the widget. If not given the message will be shown in the page's default error widget.

failpage - Normally this is left as None, and the fail page set in the Responder is automatically called, however a fail page can be set here if required.