self._initialized = True
options = []
for name, value in kwargs.items():
- key = getattr(ConfigKey, name.upper())
+ key = getattr(ConfigKey, name)
src = sr_config()
src.key = key.id
src.data = python_to_gvariant(value)
self._probe_groups = None
def __getattr__(self, name):
- key = getattr(ConfigKey, name.upper())
+ key = getattr(ConfigKey, name)
data = new_gvariant_ptr_ptr()
try:
check(sr_config_get(self.driver.struct, self.struct, None,
def __setattr__(self, name, value):
try:
- key = getattr(ConfigKey, name.upper())
+ key = getattr(ConfigKey, name)
except AttributeError:
super(Device, self).__setattr__(name, value)
return
obj.info = ConfigInfo(obj)
if obj.info:
setattr(cls, obj.info.id, obj)
+ else:
+ setattr(cls, name.lower(), obj)