diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-08-28 00:17:01 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-08-28 00:17:01 +0200 |
commit | b1abd53db03a78ef1ee856c5f5c965d49d048a3b (patch) | |
tree | 9cc7872f982b295721641dcd2c6de48939666b98 /docs/generate_values_doc.py | |
parent | cc7d96248e6bbae9cc464f2d0091bb6d6219da4a (diff) | |
download | Ishtar-b1abd53db03a78ef1ee856c5f5c965d49d048a3b.tar.bz2 Ishtar-b1abd53db03a78ef1ee856c5f5c965d49d048a3b.zip |
📝 update variable in documentation (remove old geo management and add geovactordata)
Diffstat (limited to 'docs/generate_values_doc.py')
-rw-r--r-- | docs/generate_values_doc.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/docs/generate_values_doc.py b/docs/generate_values_doc.py index acff81ff8..6ed8cde0c 100644 --- a/docs/generate_values_doc.py +++ b/docs/generate_values_doc.py @@ -29,7 +29,9 @@ TYPES = { 'URLField': "Adresse web", 'PointField': "Point", 'LineStringField': "Ligne", - 'MultiPolygonField': "Multi-polygone", + 'MultiPolygonField': "Multi-polygones", + 'MultiPointField': "Multi-points", + 'MultiLineStringField': "Multi-lignes" } TEMPLATES = ( @@ -51,12 +53,13 @@ EXCLUDED = [ "relation_bitmap_image_above", "relation_bitmap_image_below", "relation_dot", "relation_dot_above", "relation_dot_below", "relation_image_above", "relation_image_below", "auto_external_id", - "history_date" + "history_date", "created", "cached_x", "cached_y", "cached_z", + "import_key", ] EXCLUDED += ["parcel_owner"] # temporary MODELS = { - "ishtar_common": ["person", "organization", "author", "document"], + "ishtar_common": ["person", "organization", "author", "document", "geovectordata"], "archaeological_operations": ["operation", "archaeologicalsite", "parcel", "administrativeact"], "archaeological_files": ["file"], @@ -170,7 +173,7 @@ for template_name, template_name_dest, language in TEMPLATES: geo_values = get_values(tpl_model, GeoItem, excluded=excluded, model_types=TYPES, messages=MESSAGES) - render_dct["ishtar_common"]["geoitem"] = geo_values + #render_dct["ishtar_common"]["geoitem"] = geo_values excluded += geo_values["fields"] for app_name in MODELS: |