Coverage for gws-app/gws/plugin/model_value/static/__init__.py: 0%
10 statements
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-16 22:59 +0200
« prev ^ index » next coverage.py v7.11.0, created at 2025-10-16 22:59 +0200
1"""Static value."""
3from typing import Any
6import gws
7import gws.base.model.value
9gws.ext.new.modelValue('static')
12class Config(gws.base.model.value.Config):
13 """Static value configuration."""
15 value: Any
16 """Static value to return."""
19class Object(gws.base.model.value.Object):
20 def compute(self, field, feature, mc):
21 return self.cfg('value')