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
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