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() localrepos.restore_atime()
return return
else: else:
localfolder.saveuidvalidity() # Both folders empty, just save new UIDVALIDITY
remotefolder.saveuidvalidity() localfolder.save_uidvalidity()
remotefolder.save_uidvalidity()
# Load remote folder. # Load remote folder.
ui.loadmessagelist(remoterepos, remotefolder) ui.loadmessagelist(remoterepos, remotefolder)

View File

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