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

1"""Base action object.""" 

2 

3import gws 

4 

5 

6class Props(gws.Props): 

7 type: str 

8 

9 

10class Config(gws.ConfigWithAccess): 

11 pass 

12 

13 

14class Object(gws.Action): 

15 """Base action object, the parent of all action objects. 

16 

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 """ 

21 

22 def props(self, user): 

23 return gws.Data(type=self.extType)