def __properties(self): properties = self.__properties_interface.GetAll( self.__interface.dbus_interface) attr_property = Property() for key, value in properties.items(): setattr(attr_property, key, value) setattr(self, 'properties', attr_property)
def __properties(self): properties_unit = self.__properties_interface.GetAll( self.__interface_unit.dbus_interface) properties_timer = self.__properties_interface.GetAll( self.__interface_timer.dbus_interface) attr_property = Property() properties = properties_unit.copy() properties.update(properties_timer) for key, value in properties.items(): setattr(attr_property, key, value) setattr(self, 'properties', attr_property)
def __properties(self): attr_property = Property() properties = self.__properties_interface.GetAll( self.__interface.dbus_interface) for key, value in properties.items(): setattr(attr_property, key, value) if self.__extend_interface is not None: extend_properties = self.__properties_interface.GetAll( self.__extend_interface.dbus_interface) for key, value in extend_properties.items(): setattr(attr_property, key, value) setattr(self, 'properties', attr_property)