:tocdepth: 3 :py:mod:`gws.plugin.model_value.expression` =========================================== .. py:module:: gws.plugin.model_value.expression .. autoapi-nested-parse:: 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: - ``date`` - `gws.lib.datetimex` module **Source code:** :source:`gws.plugin.model_value.expression` Package Contents ---------------- .. py:class:: Config Bases: :py:obj:`gws.base.model.value.Config` Expression-based value. (added in 8.1) .. py:attribute:: text :type: str .. py:class:: Object Bases: :py:obj:`gws.base.model.value.Object` .. py:attribute:: text :type: str .. py:method:: compute(field, feature, mc) .. py:method:: configure()