Changeset 302

Show
Ignore:
Timestamp:
01/31/08 19:32:44 (10 months ago)
Author:
johnbywater
Message:

Added comments to persistence layer calls to temporal model.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/dm/db.py

    r299 r302  
    764764            if metaAttr.dom.isTemporal: 
    765765                # We don't persist temporal attributes on the parent. 
     766                #     - we need to look in the temporal model. 
    766767                r = metaAttr.dom.createTemporalCollection(self.domainObject) 
    767768                mostRecent = r.findFirstDomainObject(loadedList) 
     
    810811            if metaAttr.dom.isTemporal: 
    811812                # We don't persist temporal attributes on the parent. 
     813                #     - we need to look in the temporal model. 
    812814                r = metaAttr.dom.createTemporalCollection(self.domainObject) 
    813815                loadedList = {self.domainObject: self.domainObject} 
    814816                mostRecent = r.findFirstDomainObject(loadedList=loadedList) 
    815                 if (mostRecent==None) or (domValue!=mostRecent.recordedValue)
     817                if mostRecent == None or mostRecent.recordedValue != domValue
    816818                    r.create(recordedValue=domValue, loadedList=loadedList) 
    817819            elif metaAttr.isDomainObjectRef: