コード例 #1
0
# -*- coding: utf-8 -*-

from imio.urban.dataimport.mapping import table

VALUES_MAPS = {
    'type_map':
    table({
        'header': ['portal_type', 'foldercategory', 'abreviation'],
        '0': ['BuildLicence', 'uap', 'PU'],
        '1': ['BuildLicence', 'upp', 'PU'],
        '2': ['BuildLicence', '', 'PU'],
        '20': ['UrbanCertificateOne', 'cu1', 'CU1'],
        '21': ['UrbanCertificateTwo', 'cu2', 'CU2'],
        '22': ['NotaryLetter', '', 'Not'],
        '30': ['ParcelOutLicence', '', 'PL'],
        '40': ['MiscDemand', 'apct', 'DD'],
        '50': ['Article127', '', 'PU127'],
        '80': ['BuildLicence', 'pu', 'PU'],
        '82': ['Declaration', 'dup', 'Decl'],
        '100': ['MiscDemand', 'apct', 'Decl'],
    }),
    'eventtype_id_map':
    table({
        'header': ['decision_event', 'folder_complete', 'deposit_event'],
        'BuildLicence': [
            'delivrance-du-permis-octroi-ou-refus', 'accuse-de-reception',
            'depot-de-la-demande'
        ],
        'Article127': [
            'delivrance-du-permis-octroi-ou-refus', 'accuse-de-reception',
            'depot-de-la-demande'
コード例 #2
0
        "Permis d'Urbanisation": 'ParcelOutLicence',
        'PC': '',
        'Permis Intégré': '',
        'Permis Unique': 'UniqueLicence',
        'PL': '',
        'PU': '',
        'PUA': '',
        'PUB': '',
        'PUC': '',
        'PUrbanisation': 'ParcelOutLicence',
        'RPC': '',
        'RPL': '',
        'RPU': '',
        'xx': '',
        'NEANT': '',
        '': '',
    },
    'eventtype_id_map':
    table({
        'header': ['decision_event'],
        'BuildLicence': ['delivrance-du-permis-octroi-ou-refus'],
        'ParcelOutLicence': ['delivrance-du-permis-octroi-ou-refus'],
        'Declaration': ['deliberation-college'],
        'UrbanCertificateOne': ['octroi-cu1'],
        'UrbanCertificateTwo': ['octroi-cu2'],
        'MiscDemand': ['deliberation-college'],
        'EnvClassOne': ['decision'],
        'EnvClassTwo': ['desision'],
        'EnvClassThree': ['acceptation-de-la-demande'],
    }),
}
コード例 #3
0
# -*- coding: utf-8 -*-

from imio.urban.dataimport.mapping import table

VALUES_MAPS = {

    'type_map': table({
        'header': ['portal_type', 'foldercategory'],
        '': ['BuildLicence', 'upp'],
        'PerOrd': ['BuildLicence', 'upp'],
        'CU2': ['BuildLicence', 'upp'],
        'aut com': ['BuildLicence', 'upp'],
        'Aut com': ['BuildLicence', 'upp'],
        'art 127': ['BuildLicence', 'art127'],
        'Declarat': ['Declaration', 'dup'],
        'Déclaration': ['Declaration', 'dup'],
        'Puniq': [None, None],
        'socio': [None, None],
    }),

    'division_map': {
        'courcelles': '52015',
        'gouy-lez-piéton': '52031',
        'souvret': '52064',
        'trazegnies': '52066',
    },

    'externaldecisions_map': {
        'favorable': 'favorable',
        'favorable conditionel': 'favorable-conditionnel',
        'défavorable': 'defavorable',
コード例 #4
0
 table({
     'header': [
         'decision_event', 'college_report_event', 'deposit_event',
         'complete_folder'
     ],
     'BuildLicence': [
         'delivrance-du-permis-octroi-ou-refus', 'rapport-du-college',
         'depot-de-la-demande', 'accuse-de-reception'
     ],
     'ParcelOutLicence': [
         'delivrance-du-permis-octroi-ou-refus', 'rapport-du-college',
         'depot-de-la-demande', 'accuse-de-reception'
     ],
     'Declaration': [
         'deliberation-college', 'rapport-du-college',
         'depot-de-la-demande', ''
     ],
     'UrbanCertificateOne':
     ['octroi-cu1', 'rapport-du-college', 'depot-de-la-demande', ''],
     'UrbanCertificateTwo':
     ['octroi-cu2', 'rapport-du-college', 'depot-de-la-demande', ''],
     'MiscDemand': [
         'deliberation-college', 'rapport-du-college',
         'depot-de-la-demande', ''
     ],
     'EnvClassOne': [
         'decision', 'rapport-du-college', 'depot-de-la-demande',
         'dossier-complet-recevable'
     ],
     'EnvClassTwo': [
         'decision', 'rapport-du-college', 'depot-de-la-demande',
         'dossier-complet-recevable'
     ],
     'EnvClassThree': [
         'acceptation-de-la-demande', 'rapport-du-college',
         'depot-de-la-demande', ''
     ],
     'UniqueLicence': [
         'delivrance-du-permis-octroi-ou-refus', 'rapport-du-college',
         'depot-de-la-demande', 'accuse-de-reception'
     ],
 }),
コード例 #5
0
from imio.urban.dataimport.mapping import table

VALUES_MAPS = {
    'type_map':
    table({
        'header': ['portal_type', 'foldercategory'],
        -67969: ['', 'plainte'],  #  ne pas reprendre ces dossiers
        -62737: ['ParcelOutLicence', ''],
        -49306: ['BuildLicence', 'art127'],
        -42575: ['BuildLicence', 'uap'],
        -40086: [
            'ParcelOutLicence', ''
        ],  # pour ces 11 dossiers là, il faudra cocher la catégorie RW à la main
        -36624: ['MiscDemand', 'infraction'],  # infractions
        -34766: ['UrbanCertificateOne', ''],
        -15200: ['Declaration', ''],
        -10362: ['MiscDemand', 'dpr'],
        -10200: ['', 'uap'],  # ne pas reprendre ces dossiers
        848193: ['BuildLicence', 'uap'],
        848999: ['ParcelOutLicence', 'lap'],
        850163: ['ParcelOutLicence', 'lapm'],
        855825: ['BuildLicence', 'uap'],
        855837: ['BuildLicence', 'uap'],
        856646: ['ParcelOutLicence', 'lapm'],
        857125: ['ParcelOutLicence', 'lap'],
        859150: ['BuildLicence', 'art127'],
    }),

    # pour la reférence, virer le 'RA' ou 'RG'
    # pour la référence, reprendre la colonne DOSSIER_REFCOM
コード例 #6
0
# -*- coding: utf-8 -*-

from imio.urban.dataimport.mapping import table

VALUES_MAPS = {
    'type_map':
    table({
        'header': ['portal_type', 'foldercategory', 'abreviation'],
        'B': ['BuildLicence', 'uap', ''],
        'U': ['', '', 'PU'],  # permis uniques, pas encore dans urban
        'Autre': ['MiscDemand', 'env', 'E'],  # ancien dossier environnement
        'Classe 1': ['EnvClassOne', '', 'E1'],
        'Classe 2': ['EnvClassTwo', '', 'E2'],
        'Classe 3': ['EnvClassThree', '', 'E3'],
        'R': ['Declaration', 'dup', 'Decl'],
        'L': ['ParcelOutLicence', '', 'PL'],
        '1': ['UrbanCertificateOne', '', 'CU2'],
        '2': ['UrbanCertificateTwo', '', 'CU1'],
        'A': ['MiscDemand', 'apct', 'DD'],
        'Z': ['MiscDemand', 'apct', 'DD'],
    }),

    # type de permis, se baser sur la colonne "Rec":
    # B: BuildLicence
    # R: Declaration
    # E: Environnement
    # L: ParcelOutLicence
    # U: Permis uniques
    # 1: Certificats d'urbanisme 1
    # 2: Certificats d'urbanisme 2
    # Z: MiscDemand
コード例 #7
0
# -*- coding: utf-8 -*-

from imio.urban.dataimport.mapping import table

VALUES_MAPS = {
    'type_map':
    table({
        'header': ['portal_type', 'foldercategory'],
        -67348: ['EnvClassTwo', ''],  # Permis d’environnement classe 2
        -62737: ['ParcelOutLicence', 'lap'],
        -53925: ['', ''],  # Permis unique, ne pas reprendre pour l'instant
        -49306: ['Article127', ''],
        -46623: ['EnvClassThree', ''],  # permis d'environnement classe 3
        -42575: ['BuildLicence', 'uap'],
        -37624: ['EnvClassTwo', ''],  # permis d'environnement classe 2
        -36624:
        ['', 'infraction'],  # infractions, implémentation prévue dans le futur
        -34766: ['NotaryLetter', ''],  # lettre de notaire (art 85)
        -15200: ['Declaration', ''],
        -14179: ['Division', ''],
    }),

    # pour la reférence, virer le 'RA' ou 'RG'
    # pour la référence, reprendre la colonne DOSSIER_REFCOM

    # Main dictionaries

    # octroi/refus
    'state_map': {
        -58L: 'refuse',  # irrecevable (validé par chatelet)
        -49L: 'accept',  # -49 = octroyé
コード例 #8
0
VALUES_MAPS = {

    'division_map': {
        'I': '1',
        'II': '2',
        'III': '3',
        'IV': '4',
        'V': '5',
    },

    'division_code_map': {
        '1': '64016',
        '2': '61009',
        '3': '61037',
        '4': '64070',
        '5': '61002',
    },

    'eventtype_id_map': table({
        'header'             : ['decision_event'],
        'BuildLicence'       : ['delivrance-du-permis-octroi-ou-refus'],
        'ParcelOutLicence'   : ['delivrance-du-permis-octroi-ou-refus'],
        'Declaration'        : ['deliberation-college'],
        'UrbanCertificateOne': ['octroi-cu1'],
        'UrbanCertificateTwo': ['octroi-cu2'],
        'MiscDemand'         : ['deliberation-college'],
        'EnvClassOne'        : ['decision'],
        'EnvClassTwo'        : ['desision'],
        'EnvClassThree'      : ['acceptation-de-la-demande'],
    }),
}
コード例 #9
0
# -*- coding: utf-8 -*-

from imio.urban.dataimport.mapping import table

VALUES_MAPS = {
    'eventtype_id_map':
    table({
        'header': ['decision_event', 'college_report_event', 'deposit_event'],
        'BuildLicence': [
            'delivrance-du-permis-octroi-ou-refus', 'rapport-du-college',
            'depot-de-la-demande'
        ],
        'Declaration':
        ['deliberation-college', '', 'copy_of_depot-de-la-demande'],
        'Division': ['decision-octroi-refus', '', 'depot-de-la-demande'],
        'UrbanCertificateOne':
        ['octroi-cu1', '', 'copy_of_depot-de-la-demande'],
        'MiscDemand': ['deliberation-college', '', 'depot-de-la-demande'],
        'EnvClassTwo': ['custom', '',
                        'depot-de-la-demande'],  #event != octroi/refus
        'EnvClassThree': ['custom', '', 'depot-de-la-demande-de-cl3'
                          ],  #event != octroi/refus/cond
    }),
    'solicitOpinionDictionary': {
        '1':
        "service-technique-provincial",  #Avis Service technique provincial
        '2': "direction-des-cours-deau",  #Avis Dir Cours d'eau
        '3': "pi",  #Avis Zone de secours
        '4': "ores",  #Avis ORES
        '5': "cibe",  #Avis Vivaqua
        '6': "agriculture",  #Avis Dir Développement rural
コード例 #10
0
from imio.urban.dataimport.mapping import table

VALUES_MAPS = {

'type_map': table({
'header'  : ['portal_type',         'foldercategory', 'abreviation'],
''        : ['BuildLicence',        'uap',            'PU'],
'P'       : ['BuildLicence',        'uap',            'PU'],
'1'       : ['BuildLicence',        'upp',            'PU'],
'2'       : ['BuildLicence',        '',               'PU'],
'ART. 127': ['Article127',          '',               'PU'],
'ART. 48' : ['BuildLicence',        'udc',            'PU'],
'C.U. 1'  : ['UrbanCertificateOne', 'cu1',            'CU1'],
'C.U. 2'  : ['UrbanCertificateTwo', 'cu2',            'CU2'],
'22'      : ['NotaryLetter',        '',               'Not'],
'30'      : ['ParcelOutLicence',    '',               'PL'],
'PL'      : ['ParcelOutLicence',    '',               'PL'],
'MPL'     : ['ParcelOutLicence',    '',               'MPL'],
'40'      : ['MiscDemand',          'apct',           'DD'],
'50'      : ['Article127',          '',               'PU'],
'80'      : ['BuildLicence',        'pu',             'PU'],
'82'      : ['Declaration',         'dup',            'Decl'],
'D'       : ['Declaration',         'dup',            'Decl'],
'100'     : ['MiscDemand',          'apct',           'Decl'],
}),

'division_map': {
    '21': '53018',  # 'Ciply'
    '6': '53019',  # 'Cuesmes'
    '23': '53027',  # 'Fl\xc3\xa9nu'
コード例 #11
0
 "type_map": table(
     {
         "header": ["portal_type", "foldercategory"],
         -88291: ["", ""],  # Abattage d'arbre, ne pas reprendre ces dossiers
         -67348: ["", ""],  # ne pas reprendre ces dossiers (DIVENV)
         -62737: ["ParcelOutLicence", "lap"],
         -57728: ["", ""],  # ne pas reprendre ces dossiers
         -53925: ["", ""],  # Permis unique, ne pas reprendre ces dossiers
         -52990: ["", ""],  # Article 65, ne pas reprendre ces dossiers
         -49306: ["Article127", ""],
         -46623: ["", ""],  # permis d'environnement classe 3
         -42575: ["BuildLicence", "uap"],
         -40086: ["ParcelOutLicence", "lap"],
         -37624: ["", ""],  # permis d'environnement classe 1
         -36624: ["", "infraction"],  # infractions, ne pas reprendre
         -34766: ["NotaryLetter", ""],  # lettre de notaire
         -28278: ["", ""],  # permis d'environnement classe 1
         -26124: ["ParcelOutLicence", "lap"],
         -25638: ["MiscDemand", "dpr"],
         -21454: ["", "reclam"],  # reclamations, ne pas reprendre
         -20646: ["Article127", ""],
         -19184: ["", ""],  # permis d'environnement classe 2
         -17277: ["BuildLicence", "uap"],
         -15200: ["Declaration", ""],
         -14333: ["", "reclam"],  # reclamations, ne pas reprendre
         -14179: ["Division", ""],
         -13467: ["", "infraction"],  # infractions, ne pas reprendre
         -11889: ["BuildLicence", "uap"],
         -10362: ["MiscDemand", "dpr"],  # demande de principe
         -7812: ["Article127", ""],
         -5976: ["", ""],  # permis d'environnement classe 3
         -5753: ["NotaryLetter", ""],  # lettre de notaire
         -3575: ["", ""],  # permis d'environnement classe 2
         -2982: ["UrbanCertificateOne", ""],  # A faire !!!
         -1972: ["ParcelOutLicence", "lap"],
         0: ["", ""],  # ne pas reprendre ces dossiers
         537481: ["BuildLicence", "uap"],
         585827: ["ParcelOutLicence", "lap"],
         596954: ["UrbanCertificateOne", ""],  # A faire !!!
         598613: ["", ""],  # Permis unique classe 1, ne pas reprendre ces dossiers
         598861: ["", ""],  # Permis unqiue classe 2, ne pas reprendre ces dossiers
         599084: ["", ""],  # Classe 3, as reprendre ces dossiers
         600326: ["Division", ""],
         917233: [
             "BuildLicence",
             "uap",
         ],  # TODO id présent dans Châtelet (RA-B): type permis d'urbanisme : à valider
         1057715: [
             "ParcelOutLicence",
             "lap",
         ],  # TODO id présent dans Châtelet (RA-L): type permis d'urbanisation : à valider
         3937207: ["", ""],  # Abattage d'arbre, ne pas reprendre ces dossiers
     }
 ),
コード例 #12
0
# -*- coding: utf-8 -*-

from imio.urban.dataimport.mapping import table

VALUES_MAPS = {

'type_map': table({
'header'  : ['portal_type',         'foldercategory', 'abreviation'],
'B'       : ['BuildLicence',        'uap',            ''],
'U'       : ['',                    '',               'PU'],  # permis uniques, pas encore dans urban
'Autre'   : ['MiscDemand',          'env',            'E'],  # ancien dossier environnement
'Classe 1': ['EnvClassOne',         '',               'E1'],
'Classe 2': ['EnvClassTwo',         '',               'E2'],
'Classe 3': ['',       '',               'E3'],
'R'       : ['Declaration',         'dup',            'Decl'],
'L'       : ['ParcelOutLicence',    '',               'PL'],
'1'       : ['UrbanCertificateOne', '',               'CU2'],
'2'       : ['UrbanCertificateTwo', '',               'CU1'],
'A'       : ['MiscDemand',          'apct',           'DD'],
'Z'       : ['MiscDemand',          'apct',           'DD'],
}),

# type de permis, se baser sur la colonne "Rec":
# B: BuildLicence
# R: Declaration
# E: Environnement
# L: ParcelOutLicence
# U: Permis uniques
# 1: Certificats d'urbanisme 1
# 2: Certificats d'urbanisme 2
# Z: MiscDemand
コード例 #13
0
# -*- coding: utf-8 -*-

from imio.urban.dataimport.mapping import table

VALUES_MAPS = {

    'eventtype_id_map': table({
        'header'             : ['decision_event', 'college_report_event', 'deposit_event'],
        'BuildLicence'       : ['delivrance-du-permis-octroi-ou-refus', 'rapport-du-college', 'depot-de-la-demande'],
        'Declaration'        : ['deliberation-college', '', 'copy_of_depot-de-la-demande'],
        'Division'        :    ['decision-octroi-refus', '', 'depot-de-la-demande'],
        'UrbanCertificateOne': ['octroi-cu1', '', 'copy_of_depot-de-la-demande'],
        'MiscDemand'         : ['deliberation-college', '', 'depot-de-la-demande'],
        'EnvClassTwo'        : ['custom', '', 'depot-de-la-demande'], #event != octroi/refus
        'EnvClassThree'      : ['custom', '', 'depot-de-la-demande-de-cl3'], #event != octroi/refus/cond
    }),

    'solicitOpinionDictionary': {
               '1' :        "service-technique-provincial", #Avis Service technique provincial
               '2' :        "direction-des-cours-deau", #Avis Dir Cours d'eau
               '3' :        "pi", #Avis Zone de secours
               '4' :        "ores", #Avis ORES
               '5' :        "cibe", #Avis Vivaqua
               '6' :        "agriculture", #Avis Dir Développement rural
               '7' :        "dnf", #Avis Département Nature et Forêts
               '8' :        "forces-armees", #Avis Forces armées
               '9' :        "spw-dgo1", #Avis Dir Routes BW
               '10':        "swde", #Avis SWDE/IECBW
               '11':        "belgacom", #Avis PROXIMUS
               '12':        "infrabel", #Avis TEC
               '13':        "ibw", #Avis IBW