gws.plugin.model_value.expression
¶
Expression value.
This value is computed by evaluating a python expression.
The following variables are provided to the expression:
app
- the Application objectuser
- current userfeature
- feature this value is evaluated formc
-ModelContext
object
The following modules are available:
date
-gws.lib.datetimex
module
Source code: gws.plugin.model_value.expression
Package Contents¶
- class gws.plugin.model_value.expression.Config¶
Bases:
gws.base.model.value.Config
Expression-based value. (added in 8.1)
- text: str¶
- class gws.plugin.model_value.expression.Object¶
Bases:
gws.base.model.value.Object
- text: str¶
- compute(field, feature, mc)¶
- configure()¶