demarches_simpy.fields moduleο
- class AttachedFileField(id, label, stringValue, type, dossier, **kwargs)[source]ο
Represent a attached file field of a dossier (all properties of Field are available)
Propertiesο
- filesdict[str,dict[str,str]]
a dict of files with the url as key and the filename, size, type and url as value
- property files: dict[str, dict[str, str]]ο
a dict of files with the url as key and the filename, size, type and url as value
- class DateField(id, label, stringValue, type, dossier, **kwargs)[source]ο
Represent a date field of a dossier (all properties of Field are available)
Propertiesο
- datestr
The date of the field formatted in ISO 8601 (YYYY-MM-DD) (stringValue is plain text formatted like β12 mars 2021β)
- timestampint
The timestamp of the date
- class Field(id, label, stringValue, type, dossier, **kwargs)[source]ο
Represent a field of a dossier, itβs a generic class, you should use more specific class if you want to access to more specific properties
Propertiesο
- idstr
The id of the field
- labelstr
The label of the field
- stringValuestr
The value of the field
- typestr
The type of the field
- dossierDossier
The dossier which the field is attached
- class MapField(id, label, stringValue, type, dossier, **kwargs)[source]ο
Propertiesο
- geoAreaslist[GeoArea]
The list of GeoArea of the field
- class MultipleDropDownField(id, label, stringValue, type, dossier, **kwargs)[source]ο
Represent a multiple dropdown field of a dossier (all properties of Field are available)
Propertiesο
- valueslist[str]
The values of the field (same as stringValue but with a different name and maybe it can hold a better encoding)