Example #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
Example #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
Example #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
Example #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
Example #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)
Example #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)