Beispiel #1
0
def f_set_schema(regle, obj):
    '''#aide||positionne des valeurs de schema (statique)
       #pattern||C;?C;;set_schema;;
       #test1||obj;poly||^type_geom;2;;set_schema;||^V4;type_geom;;info_schema;||atv;V4;2
    '''
    schem = obj.schema
    if schem:
        if schem.amodifier(regle):
            FSC.set_val_schema(schem, regle.params.att_sortie.val, regle.params.val_entree.val)
        return True
    return False
Beispiel #2
0
def f_set_schema_d(regle, obj):
    '''#aide||positionne des valeurs de schema (dynamique)
       #pattern||C;?C;A;set_schema;;
       #test1||obj;poly||^A;2;;set||^type_geom;;A;set_schema;||^V4;type_geom;;info_schema;||atv;V4;2

    '''
    schem = obj.schema
    if schem:
        FSC.set_val_schema(schem, regle.params.att_sortie.val,
                           obj.attributs.get(regle.params.att_entree.val,
                                             regle.params.val_entree.val))
        return True
    return False
def f_set_schema(regle, obj):
    """#aide||positionne des parametres de schema (statique)
       #pattern||C;?C;;set_schema;;
       #aide_spec||parametres positionnables:
        || pk : nom de la clef primaire
        || alias : commentaire de la table
        || dimension : dimension geometrique
        || no_multiple : transforme les attributs multiples en simple
        || stable : declare un schema stable
        || instable declare un schema instable
    #parametres||nom du parametre a positionner;valeur
       #test1||obj;poly||^type_geom;2;;set_schema;||^V4;type_geom;;info_schema;||atv;V4;2
    """
    schem = obj.schema
    if schem:
        if schem.amodifier(regle):
            FSC.set_val_schema(schem, regle.params.att_sortie.val,
                               regle.params.val_entree.val)
        return True
    return False