ucscsdk/ucsccoreutils.py
def load_mo(elem):
    """
    This loads the managed object  into the current name space

    Args:
        class_id (str): class_id

    Returns:
        MangedObject
    """

    import inspect

    mo_class_id = elem.tag
    mo_class = load_class(mo_class_id)
    mo_class_params = inspect.getargspec(mo_class.__init__)[0][2:]
    mo_class_param_dict = {}
    for param in mo_class_params:
        mo_class_param_dict[param] = elem.attrib[
            mo_class.PROPERTY_MAP[param]]

    mo_obj = mo_class(parent_mo_or_dn="", **mo_class_param_dict)
    return mo_obj

    This loads the managed object  into the current name space

    Args:
        class_id (str): class_id

    Returns:
        MangedObject
    
This loads the managed object  into the current name space
This loads the managed object into the current name space
def load_mo(elem):
    import inspect
    mo_class_id = elem.tag
    mo_class = load_class(mo_class_id)
    mo_class_params = inspect.getargspec(mo_class.__init__)[0][2:]
    mo_class_param_dict = {}
    for param in mo_class_params:
        mo_class_param_dict[param] = elem.attrib[
            mo_class.PROPERTY_MAP[param]]
    mo_obj = mo_class(parent_mo_or_dn="", **mo_class_param_dict)
    return mo_obj
def load_mo ( elem ) : import inspect mo_class_id = elem . tag mo_class = load_class ( mo_class_id ) mo_class_params = inspect . getargspec ( mo_class . __init__ ) [ 0 ] [ 2 : ] mo_class_param_dict = { } for param in mo_class_params : mo_class_param_dict [ param ] = elem . attrib [ mo_class . PROPERTY_MAP [ param ] ] mo_obj = mo_class ( parent_mo_or_dn = "" , ** mo_class_param_dict ) return mo_obj
This loads the managed object  into the current name space
This loads the managed object into the current name space
"""
    This loads the managed object  into the current name space

    Args:
        class_id (str): class_id

    Returns:
        MangedObject
    """
None
elem
class_id
None