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 object

  • user - current user

  • feature - feature this value is evaluated for

  • mc - ModelContext object

The following modules are available:

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()