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

GoTo

This exception can be imported using:

from skipole import GoTo

It has arguments:

GoTo(target, clear_submitted=False, clear_page_data=False)

This is an Exception class that, being raised, forces a jump to the page given by the target argument.

GoTo has arguments:

target - is the ident, label or external url of the page to jump to. If a url is given it should start with http:// or https:// or /, in this case a redirection instruction is sent to the client browser so submitted data and page data are not applied to the target.

clear_submitted - if True, any submitted data in the widget fields will be discarded. This allows a GoTo to an AllowedFields responder that expects nothing to be submitted.

clear_page_data - if True, any data set in skicall is cleared.

If the target ident is that of a responder page then it cannot be a responder already visited within the call (this will raise a ServerError) as this may cause an infinite loop condition.