Lines Matching refs:key
829 for key, value in self._attributes.items():
830 # If the key wasn't already set in this instance,
832 if not key in kwargs and not key in self.__dict__:
833 self._debug('DEFAULT: Setting %s="%s"', (key, value))
834 self.__setattr__(key, value)
837 for key, value in kwargs.items():
838 # If the key wasn't already set in this instance,
840 if key in self.__dict__:
842 self._debug('KWARGS: Setting %s="%s"', (key, value))
843 self.__setattr__(key, value)
867 for key in self.default_attributes():
868 value = getattr(self, key, None)
870 retdict[key] = value
882 for key in self._attributes.keys():
884 newval = getattr(other, key)
885 if newval != getattr(self, key):
886 setattr(self, key, newval)
900 for key in keys:
902 if getattr(self, key) != getattr(other, key):
997 def __setattr__(self, key, value):
1003 if key == 'default':
1004 self._debug('key="%s" value="%s"', (key, value))
1007 self.__dict__[key] = value
1008 if key in self._attributes and not self._bootconfig is None:
1009 self._debug('key="%s" value="%s"', (key, value))
1012 def __delattr__(self, key):
1016 if key == 'default':
1017 self._debug('delete key="default"')
1021 if not key in self.__dict__:
1022 raise AttributeError(str(key))
1024 del self.__dict__[key]
1026 if key in self._attributes and not self._bootconfig is None:
1027 self._debug('delete key="%s"', key)
1048 for key in self._attributes:
1049 if key not in other._attributes:
1051 if getattr(self, key) != getattr(other, key):