Rename folder.saveuidvalidity()

Simply rename to folder.save_uidvalidity()

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2012-01-19 11:53:48 +01:00
parent eb616da602
commit d3c693be7d
2 changed files with 6 additions and 5 deletions

View File

@ -413,8 +413,9 @@ def syncfolder(account, remotefolder, quick):
localrepos.restore_atime()
return
else:
localfolder.saveuidvalidity()
remotefolder.saveuidvalidity()
# Both folders empty, just save new UIDVALIDITY
localfolder.save_uidvalidity()
remotefolder.save_uidvalidity()
# Load remote folder.
ui.loadmessagelist(remoterepos, remotefolder)

View File

@ -122,7 +122,7 @@ class BaseFolder(object):
if self.get_saveduidvalidity() != None:
return self.get_saveduidvalidity() == self.get_uidvalidity()
else:
self.saveuidvalidity()
self.save_uidvalidity()
return True
def _getuidfilename(self):
@ -145,8 +145,8 @@ class BaseFolder(object):
file.close()
return self._base_saved_uidvalidity
def saveuidvalidity(self):
"""Save the UID value of the folder to the status
def save_uidvalidity(self):
"""Save the UIDVALIDITY value of the folder to the cache
This function is not threadsafe, so don't attempt to call it
from concurrent threads."""