class documentation
class ACMEViewRequest(VerticalScroll):
Constructor: ACMEViewRequest(id, title, header, originator, ...)
View to display request.
| Method | __init__ |
Initialize the view. |
| Method | button |
Execute the callback. |
| Method | compose |
Compose the view. |
| Method | prepare |
Prepare the request for an operation. |
| Method | resource |
Set the resource text. |
| Method | run |
Run the request on a resource. |
| Method | select |
Handle the select change. |
| Method | show |
Show the current request as cURL command. |
| Method | update |
Update the originator. |
| Method | update |
Update the selected resource. |
| Class Variable | factory |
Injected Factory instance. |
| Class Variable | request |
Injected RequestManager instance. |
| Class Variable | validator |
Injected Validator instance. |
| Instance Variable | border |
The border title. Inherited from the parent class. |
| Instance Variable | button |
The button to submit the request. |
| Instance Variable | callback |
The callback for the button action. |
| Instance Variable | child |
The child resource select view. |
| Instance Variable | enable |
Enable the editor. |
| Instance Variable | header |
The header label. |
| Instance Variable | input |
The input originator. |
| Instance Variable | operation |
The operation for the request. |
| Instance Variable | resource |
Return the resource text. |
| Instance Variable | resource |
The resource text area. |
| Instance Variable | response |
The response view. |
| Instance Variable | select |
The callback for the select change. |
| Property | child |
Return the selected child resource type. |
| Property | originator |
Return the originator. |
| Instance Variable | _app |
The application. |
def __init__(self, id:
str, title: str, header: str, originator: str, buttonLabel: str, buttonVariant: ButtonVariant | None = 'primary', callback: Callable | None = None, enableEditor: bool = True, operation: Operation = Operation.CREATE, selectCallback: Callable | None = None, responseView: ACMEViewResponse | None = None):
¶
Initialize the view.
| Parameters | |
id:str | The view ID. |
title:str | The title of the view. |
header:str | The header text. |
originator:str | The originator. |
buttonstr | The label of the button. |
buttonButtonVariant | None | The button variant. |
callback:Callable | None | The callback for the button action |
enablebool | Enable the editor. |
operation:Operation | The operation for the request. |
selectCallable | None | The callback for the select change. |
responseACMEViewResponse | None | The response view. |
def updateResourceView(self, resource:
Resource, resourceType: ResourceTypes, requestOriginator: str | None = None):
¶
Update the selected resource.
| Parameters | |
resource:Resource | The selected resource. |
resourceResourceTypes | Undocumented |
requeststr | None | Undocumented |