gws.base.action
¶
Source code: gws.base.action
Submodules¶
Package Contents¶
- class gws.base.action.Config(*args, **kwargs)¶
Bases:
gws.ConfigWithAccess
Basic config with permissions.
- gws.base.action.get_action_for_cli(root: gws.Root, action_name: str, project_uid: str | None = None) gws.Action | None ¶
Get an action object by its name and optional project UID.
If no project UID is provided, it searches for the action in the global scope and then in all projects.
- class gws.base.action.Object¶
Bases:
gws.Action
Generic action object, the parent of all action objects.
- props(user)¶
Generate a
Props
struct for this object.- Parameters:
user – The user for which the props should be generated.
- gws.base.action.parse_cli_request(root: gws.Root, command_category: gws.CommandCategory, command_name: str, params: dict, read_options=None)¶
Parse a CLI request and return the action handler and request object.