Ejemplo n.º 1
0
def getclassnames():
    """Returns a list of all defined IMM classes.
    """
    dn='opensafImm=opensafImm,safApp=safImmService'
    for (n, t, v) in immombin.saImmOmAccessorGet(dn):
        if n == 'opensafImmClassNames':
            return v
Ejemplo n.º 2
0
def getclassnames():
    """Returns a list of all defined IMM classes.
    """
    dn='opensafImm=opensafImm,safApp=safImmService'
    for (n,t,v) in immombin.saImmOmAccessorGet(dn):
        if n == 'opensafImmClassNames':
            return v
Ejemplo n.º 3
0
def getattributes(dn):
    """Get the attributes of an IMM object as a dictionary.
    This is basically the same as the getobject function but returned as
    a convenient dictionary. The type info is however lost.
    """
    a = dict()
    for (n, t, v) in immombin.saImmOmAccessorGet(dn):
        a[n] = v
    return a
Ejemplo n.º 4
0
def getattributes(dn):
    """Get the attributes of an IMM object as a dictionary.
    This is basically the same as the getobject function but returned as
    a convenient dictionary. The type info is however lost.
    """
    a = dict()
    for (n,t,v) in immombin.saImmOmAccessorGet(dn):
        a[n] = v
    return a
Ejemplo n.º 5
0
def getobject(dn):
    """Get an IMM object.
    Returns a list with all attributes as tuples (name, type, value_list).
    See the "getclass" function for types.
    """
    return immombin.saImmOmAccessorGet(dn)
Ejemplo n.º 6
0
def getobject(dn):
    """Get an IMM object.
    Returns a list with all attributes as tuples (name, type, value_list).
    See the "getclass" function for types.
    """
    return immombin.saImmOmAccessorGet(dn)