Coverage for gws-app/gws/base/action/core.py: 100%
7 statements
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
« prev ^ index » next coverage.py v7.16.2, created at 2026-10-05 13:35 +0200
1"""Base action object."""
3import gws
6class Props(gws.Props):
7 type: str
10class Config(gws.ConfigWithAccess):
11 pass
14class Object(gws.Action):
15 """Base action object, the parent of all action objects.
17 An action groups server commands, which subclasses implement as methods
18 decorated with ``gws.ext.command.*``. The base class provides the action
19 props, which contain only the action type.
20 """
22 def props(self, user):
23 return gws.Data(type=self.extType)