예제 #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
예제 #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
예제 #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
예제 #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
예제 #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)
예제 #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)