gws.base.model.scalar_field

Generic scalar field.

Source code: gws.base.model.scalar_field

Module Contents

class gws.base.model.scalar_field.Config(*args, **kwargs)

Bases: gws.base.model.field.Config

Configuration for the scalar field.

isVirtual: bool | None

The field is not stored in the DB. (added in 8.1)

class gws.base.model.scalar_field.Object

Bases: gws.base.model.field.Object

Model field.

isVirtual: bool
after_select(features, mc)
before_create(feature, mc)
before_select(mc)
before_update(feature, mc)
configure()

Configuration hook.

do_init(feature, mc)
from_props(feature, mc)
from_record(feature, mc)
get_value(feature: gws.Feature, source: dict, has_access: bool, convert_fn: Callable, mc: gws.ModelContext)
model_value(mc: gws.ModelContext)
to_props(feature, mc)
to_record(feature, mc)
class gws.base.model.scalar_field.Props(*args, **kwargs)

Bases: gws.base.model.field.Props

Object properties.