Changeset 302
- Timestamp:
- 01/31/08 19:32:44 (10 months ago)
- Files:
-
- trunk/src/dm/db.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/dm/db.py
r299 r302 764 764 if metaAttr.dom.isTemporal: 765 765 # We don't persist temporal attributes on the parent. 766 # - we need to look in the temporal model. 766 767 r = metaAttr.dom.createTemporalCollection(self.domainObject) 767 768 mostRecent = r.findFirstDomainObject(loadedList) … … 810 811 if metaAttr.dom.isTemporal: 811 812 # We don't persist temporal attributes on the parent. 813 # - we need to look in the temporal model. 812 814 r = metaAttr.dom.createTemporalCollection(self.domainObject) 813 815 loadedList = {self.domainObject: self.domainObject} 814 816 mostRecent = r.findFirstDomainObject(loadedList=loadedList) 815 if (mostRecent==None) or (domValue!=mostRecent.recordedValue):817 if mostRecent == None or mostRecent.recordedValue != domValue: 816 818 r.create(recordedValue=domValue, loadedList=loadedList) 817 819 elif metaAttr.isDomainObjectRef:
