From b1abd53db03a78ef1ee856c5f5c965d49d048a3b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 28 Aug 2023 00:17:01 +0200 Subject: 📝 update variable in documentation (remove old geo management and add geovactordata) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/generate_values_doc.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'docs/generate_values_doc.py') 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: -- cgit v1.2.3