def _isAltered(self):
     if self._inserted:
         return True
     if self._deleted:
         return True
     return any(field.is_altered for field in self._fields.itervalues())
Пример #2
0
 def __nonzero__(self):
     if RootMetadata.__nonzero__(self):
         return True
     return any(bool(group) for group in self.__groups)
Пример #3
0
 def __nonzero__(self):
     return any(item for item in self.__data.itervalues())
Пример #4
0
 def _isAltered(self):
     if self._inserted:
         return True
     if self._deleted:
         return True
     return any(field.is_altered for field in self._fields.itervalues())
Пример #5
0
 def __nonzero__(self):
     if RootMetadata.__nonzero__(self):
         return True
     return any(bool(group) for group in self.__groups)
Пример #6
0
 def __nonzero__(self):
     return any(item for item in self.__data.itervalues())