Changeset 374

Show
Ignore:
Timestamp:
05/23/08 14:28:52 (6 months ago)
Author:
johnbywater
Message:

Stopped setting 'lastModified' time on model objects when importing migrated data, so migrated times are preserved.

Files:

Legend:

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

    r359 r374  
    66import dm.times 
    77from dm.util.datastructure import MultiValueDict 
     8from dm.dictionarywords import DB_MIGRATION_IN_PROGRESS 
    89 
    910debug = RequiredFeature('Debug') 
     
    672673    def saveSilently(self): 
    673674        "Update record without raising update event." 
    674         self.updateLastModifiedTime() 
     675        if not self.dictionary[DB_MIGRATION_IN_PROGRESS]: 
     676            self.updateLastModifiedTime() 
    675677        self.record.saveDomainObject() 
    676678 
     
    856858    def getLabelValue(self): 
    857859        # default to register key value 
    858         return self.getRegisterKeyValue(
     860        return str(self.getRegisterKeyValue()
    859861 
    860862    def getPersonalLabel(self):