class documentation
View to display request responses.
| Method | __init__ |
Initialize the view. |
| Method | clear |
Clear the response. |
| Method | compose |
Compose the view. |
| Method | error |
Display an error response. |
| Method | success |
Display a success response. |
| Instance Variable | border |
The border title. Inherited from the parent class. |
| Instance Variable | classes |
The classes. Inherited from the parent class. |
| Instance Variable | response |
The response content. |
| Class Variable | _default |
The default title for the view. |
| Instance Variable | _app |
The application. |
def error(self, renderable:
RenderableType, rsc: ResponseStatusCode | None = None, title: str | None = 'ERROR'):
¶
Display an error response.
| Parameters | |
renderable:RenderableType | The response text. |
rsc:ResponseStatusCode | None | The response status code. Only used when the response is a string. |
title:str | None | Undocumented |
Display a success response.
| Parameters | |
renderable:RenderableType | The response text or renderable. |
rsc:ResponseStatusCode | None | The response status code. |