websauna.system.form.interstitial module

Display yes/no confirmation pages before taking action.

class websauna.system.form.interstitial.Choice(label, callback, id=None, css_class=None, icon_class=None)[source]

Bases: object

Present one interstitial choice button given to a user.

websauna.system.form.interstitial.process_interstitial(request, choices, *args, **kwargs)[source]

Check if user pressed any of the buttons on form and the choice accordingly.

For example use case see websauna.system.crud.views.Delete.

  • args – Passed to choice callback

  • kwargs – Passed to choice callback


HTTP response given by a choice callback