|
|
@@ -56,7 +56,7 @@ class Artere(QgsModel):
|
|
|
'AR_FAB': {'type': 'string', 'empty': False, 'maxlength': 100},
|
|
|
'AR_REFFAB': {'type': 'string', 'empty': False, 'maxlength': 100},
|
|
|
'AR_COULEUR': {'type': 'string', 'empty': False, 'maxlength': 20},
|
|
|
- 'AR_AIGUIL': {'type': 'string', 'empty': False, 'maxlength': 3, 'allowed': ['OUI', 'NON']},
|
|
|
+ 'AR_AIGUIL': {'type': 'string', 'empty': True, 'maxlength': 3, 'allowed': ['OUI', 'NON']},
|
|
|
'AR_NBCABL': {'empty': False, 'validator': is_positive_int},
|
|
|
'AR_PRO_CAB': {'type': 'string', 'empty': False, 'allowed': ['MANCHE NUMERIQUE']},
|
|
|
'AR_GEST_FO': {'type': 'string', 'multiallowed': ['MANCHE NUMERIQUE', 'MANCHE TELECOM', 'COLLECTIVITE', 'ORANGE', 'MANCHE FIBRE', 'PRIVE', 'ERDF', 'AUTRE (à préciser)', 'NUL']},
|
|
|
@@ -64,7 +64,7 @@ class Artere(QgsModel):
|
|
|
'AR_DATE_IN': {'empty': True, 'validator': is_modern_french_date},
|
|
|
'AR_DATE_RE': {'empty': True, 'validator': is_modern_french_date},
|
|
|
'AR_REF_PLA': {'type': 'string', 'maxlength': 100},
|
|
|
- 'AR_SRC_GEO': {'type': 'string', 'empty': False, 'maxlength': 50},
|
|
|
+ 'AR_SRC_GEO': {'type': 'string', 'empty': True, 'maxlength': 50},
|
|
|
'AR_QLT_GEO': {'type': 'string', 'empty': False, 'allowed': ['A', 'B', 'C']},
|
|
|
'AR_PRO_MD': {'type': 'string', 'empty': False, 'default': 'MANCHE NUMERIQUE', 'allowed': ['MANCHE NUMERIQUE']},
|
|
|
'AR_COMMENT': {'type': 'string', 'maxlength': 300, 'empty': True},
|
|
|
@@ -110,7 +110,7 @@ class Equipement(QgsModel):
|
|
|
'EQ_NOM': {'type': 'string', 'empty': False, 'maxlength': 30},
|
|
|
'EQ_NOM_NOE': {'type': 'string', 'empty': False, 'maxlength': 30},
|
|
|
'EQ_REF': {'type': 'string', 'empty': False, 'maxlength': 100},
|
|
|
- 'EQ_EMPRISE': {'type': 'string', 'empty': False, 'maxlength': 7},
|
|
|
+ 'EQ_EMPRISE': {'type': 'string', 'empty': False, 'maxlength': 10},
|
|
|
'EQ_FABR': {'type': 'string', 'empty': False, 'maxlength': 100},
|
|
|
'EQ_CAPFO': {'empty': False, 'validator': is_strictly_positive_int},
|
|
|
'EQ_NBMXEQ': {'empty': False, 'validator': is_strictly_positive_int},
|
|
|
@@ -119,7 +119,7 @@ class Equipement(QgsModel):
|
|
|
'EQ_TYPEQ': {'type': 'string', 'empty': False, 'maxlength': 100},
|
|
|
'EQ_ETAT': {'type': 'string', 'empty': False, 'allowed': ['0', '1', '2', '3', '4']},
|
|
|
'EQ_OCCP': {'type': 'string', 'empty': False, 'allowed': ['0', '1.1', '1.2', '2', '3', '4']},
|
|
|
- 'EQ_TYPE': {'type': 'string', 'empty': False, 'allowed': ['PBO', 'PBOE', 'BPE', 'BAI']},
|
|
|
+ 'EQ_TYPE': {'type': 'string', 'empty': False, 'allowed': ['PBO', 'BPE', 'BAI', 'PEC']},
|
|
|
'EQ_TYPSTRC': {'type': 'string', 'empty': False, 'allowed': ['CHAMBRE', 'AERIEN', 'FACADE', 'COLONNE MONTANTE', 'PIED IMMEUBLE', 'DTIO']},
|
|
|
'EQ_TYPE_LQ': {'type': 'string', 'empty': False, 'allowed': ['PBO', 'BPE JB', 'BPE JD', 'BAIDC', 'BAIOP']},
|
|
|
'EQ_TYPE_PH': {'type': 'string', 'empty': False, 'allowed': ['PBO 6', 'PBO 12', 'BPE 12EP', 'BPE 24EP', 'BPE 48EP', 'BPE 72EP', 'BPE 96EP', 'BPE 144EP', 'BPE 288EP', 'BPE 576EP', 'BPE 720EP', 'BAI']},
|
|
|
@@ -141,7 +141,7 @@ class Noeud(QgsModel):
|
|
|
'NO_NOM': {'type': 'string', 'empty': False, 'maxlength': 30},
|
|
|
'NO_ID_INSE': {'type': 'string', 'empty': False, 'regex': r'50\d{3}'},
|
|
|
'NO_VOIE': {'type': 'string', 'empty': False, 'maxlength': 100},
|
|
|
- 'NO_EMPRISE': {'type': 'string', 'empty': False, 'maxlength': 7},
|
|
|
+ 'NO_EMPRISE': {'type': 'string', 'empty': False, 'maxlength':10},
|
|
|
'NO_ETAT': {'type': 'string', 'empty': False, 'allowed': ['0', '1', '2', '3', '4']},
|
|
|
'NO_OCCP': {'type': 'string', 'empty': False, 'allowed': ['0', '1.1', '1.2', '2', '3', '4']},
|
|
|
'NO_TYPE': {'type': 'string', 'empty': False, 'allowed': ['CHA', 'POT', 'LTE', 'SEM', 'FAC', 'OUV', 'IMM']},
|
|
|
@@ -154,10 +154,10 @@ class Noeud(QgsModel):
|
|
|
'NO_PLINOX': {'required':False, 'type': 'string', 'maxlength': 3, 'allowed': ['OUI', 'NON']},
|
|
|
'NO_X': {'empty': True, 'validator': is_float},
|
|
|
'NO_Y': {'empty': True, 'validator': is_float},
|
|
|
- 'NO_PRO': {'type': 'string', 'maxlength': 20, 'empty': False, 'allowed': ['MANCHE NUMERIQUE', 'COLLECTIVITE', 'ORANGE', 'ERDF', 'PRIVE', 'ENEDIS', 'AUTRE (à préciser)', 'NUL']},
|
|
|
+ 'NO_PRO': {'type': 'string', 'maxlength': 20, 'empty': False, 'allowed': ['MANCHE NUMERIQUE', 'COLLECTIVITE', 'ORANGE', 'ERDF', 'PRIVE', 'ENEDIS', 'AUTRE', 'NUL']},
|
|
|
'NO_GEST': {'type': 'string', 'maxlength': 20, 'empty': False, 'allowed': ['MANCHE NUMERIQUE', 'MANCHE TELECOM', 'COLLECTIVITE', 'ORANGE', 'ERDF', 'ENEDIS', 'MANCHE FIBRE', 'PRIVE', 'AUTRE (à préciser)', 'NUL']},
|
|
|
'NO_HAUT': {'validator': is_float},
|
|
|
- 'NO_DATE_IN': {'empty': False, 'validator': is_modern_french_date},
|
|
|
+ 'NO_DATE_IN': {'empty': True, 'validator': is_modern_french_date},
|
|
|
'NO_REF_PLA': {'type': 'string', 'maxlength': 100},
|
|
|
'NO_SRC_GEO': {'type': 'string', 'maxlength': 50},
|
|
|
'NO_QLT_GEO': {'type': 'string', 'maxlength': 1, 'empty': False, 'allowed': ['A', 'B', 'C']},
|