THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class _FlashData: (source)
Known subclasses: orionis.http.Response, orionis.view.pending.PendingView
Queue flash payloads for responses and deferred views.
Owners initialize the slot and decide when to apply it to the session. Pending views apply it before rendering; responses apply it during dispatch.
| Method | with |
Flash validation errors for the next request. |
| Method | with |
Queue a status message for the owning response or pending view. |
| Method | with |
Flash the submitted payload so the next request can repopulate it. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | _flash |
Session values scheduled for availability during the next request. |
Flash validation errors for the next request.
Errors are read back in templates through the errors global.
| Parameters | |
errors:collections.abc.Mapping[str, typing.Any] | Exception | Mapping of field to message(s), or a validation exception. |
| Returns | |
typing.Self | The same owner, allowing fluent chaining. |
Queue a status message for the owning response or pending view.
The value survives for exactly one subsequent request and is read back in templates through the flash() global.
| Parameters | |
key:str | Flash data key. |
value:typing.Any, optional | Value to flash. |
| Returns | |
typing.Self | The same owner, allowing fluent chaining. |
Flash the submitted payload so the next request can repopulate it.
Values are read back in templates through the old() global. Credential-like fields such as password are stripped.
| Parameters | |
values:collections.abc.Mapping[str, typing.Any] | Submitted form payload to remember. |
| Returns | |
typing.Self | The same owner, allowing fluent chaining. |
orionis.http.Response, orionis.view.pending.PendingViewDeclare the instance attribute slots reserved by this class.
orionis.http.Response, orionis.view.pending.PendingViewSession values scheduled for availability during the next request.