When _commit()ing inside of a lock, only sync data properties if they are available

This commit is contained in:
ketralnis
2009-08-10 10:13:43 -07:00
parent 52a57125e4
commit b066246a5c

View File

@@ -147,7 +147,9 @@ class DataThing(object):
#copy in the cache's version
for prop in self._base_props:
self.__setattr__(prop, getattr(other_self, prop), False)
self._t = other_self._t
if other_self._loaded:
self._t = other_self._t
#re-apply the .dirties
old_dirties = self._dirties