def __DeviceClass__device_factory(self, device_list):
    """for internal usage only"""

    klass = self.__class__
    klass_name = klass.__name__
    info, klass = get_class_by_class(klass), get_constructed_class_by_class(klass)

    if info is None:
        raise RuntimeError("Device class '%s' is not registered" % klass_name)

    if klass is None:
        raise RuntimeError("Device class '%s' as not been constructed" % klass_name)

    deviceClassClass, deviceImplClass, deviceImplName = info
    deviceImplClass._device_class_instance = klass

    tmp_dev_list = []
    for dev_name in device_list:
        device = self._new_device(deviceImplClass, klass, dev_name)
        self._add_device(device)
        tmp_dev_list.append(device)

    self.dyn_attr(tmp_dev_list)

    for dev in tmp_dev_list:
        if Util._UseDb and not Util._FileDb:
            self.export_device(dev)
        else:
            self.export_device(dev, dev.get_name())
    self.py_dev_list += tmp_dev_list
def __DeviceClass__device_factory ( self , device_list ) : klass = self . __class__ klass_name = klass . __name__ info , klass = get_class_by_class ( klass ) , get_constructed_class_by_class ( klass ) if info is None : raise RuntimeError ( "Device class '%s' is not registered" % klass_name ) if klass is None : raise RuntimeError ( "Device class '%s' as not been constructed" % klass_name ) deviceClassClass , deviceImplClass , deviceImplName = info deviceImplClass . _device_class_instance = klass tmp_dev_list = [ ] for dev_name in device_list : device = self . _new_device ( deviceImplClass , klass , dev_name ) self . _add_device ( device ) tmp_dev_list . append ( device ) self . dyn_attr ( tmp_dev_list ) for dev in tmp_dev_list : if Util . _UseDb and not Util . _FileDb : self . export_device ( dev ) else : self . export_device ( dev , dev . get_name ( ) ) self . py_dev_list += tmp_dev_list
for internal usage only