Пример #1
0
def get(name):
    """
    Returns named device xml element's handler class

    :param name: the device name
    :return: the named device xml element's handler class
    """
    mod_path = os.path.abspath(os.path.dirname(__file__))
    handler_cl = base.load_xml_module(mod_path, name, DEVICE_TYPES)
    return handler_cl
Пример #2
0
def get(name):
    """
    Returns named filter protocol xml element's handler class

    :param name: the filter protocol name
    :return: named filter protocol xml element's handler class
    """
    mod_path = os.path.abspath(os.path.dirname(__file__))
    handler_cl = base.load_xml_module(mod_path, name, FILTER_TYPES)
    return handler_cl
Пример #3
0
def get(name):
    """
    Returns named device xml element's handler class

    :param name: the device name
    :return: the named device xml element's handler class
    """
    mod_path = os.path.abspath(os.path.dirname(__file__))
    handler_cl = base.load_xml_module(mod_path, name, DEVICE_TYPES)
    return handler_cl
Пример #4
0
def get(name):
    """
    Returns named filter protocol xml element's handler class

    :param name: the filter protocol name
    :return: named filter protocol xml element's handler class
    """
    mod_path = os.path.abspath(os.path.dirname(__file__))
    handler_cl = base.load_xml_module(mod_path, name, FILTER_TYPES)
    return handler_cl