gws.plugin.model_field.date¶
Date field.
A scalar field for dates. Values from the client are parsed with
gws.lib.datetimex.parse and stored as datetime.date objects.
They are always sent to the client as ISO date strings (YYYY-MM-DD);
locale-specific formatting is left to the client. Without a configured
widget, the field uses a date widget.
Example:
fields+ { name "start_date" type "date" title "Start date" }
Source code: gws.plugin.model_field.date
Package Contents¶
- class gws.plugin.model_field.date.Config¶
Bases:
gws.base.model.scalar_field.ConfigField for date values.
- class gws.plugin.model_field.date.Object¶
Bases:
gws.base.model.scalar_field.ObjectDate field object.
- attributeType¶
- configure_widget()¶
- prop_to_python(feature, value, mc)¶
- python_to_prop(feature, value, mc)¶
- class gws.plugin.model_field.date.Props¶