Rename folder.getsaveduidvalidity(), folder.getuidvalidity()
Modernize names to: folder.get_saveduidvalidity(), folder.get_uidvalidity() Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
9453e1d955
commit
297a618441
@ -116,8 +116,8 @@ class BaseFolder(object):
|
||||
function is not threadsafe. So don't attempt to call it from
|
||||
concurrent threads."""
|
||||
|
||||
if self.getsaveduidvalidity() != None:
|
||||
return self.getsaveduidvalidity() == self.get_uidvalidity()
|
||||
if self.get_saveduidvalidity() != None:
|
||||
return self.get_saveduidvalidity() == self.get_uidvalidity()
|
||||
else:
|
||||
self.saveuidvalidity()
|
||||
return 1
|
||||
@ -126,7 +126,11 @@ class BaseFolder(object):
|
||||
return os.path.join(self.repository.getuiddir(),
|
||||
self.getfolderbasename())
|
||||
|
||||
def getsaveduidvalidity(self):
|
||||
def get_saveduidvalidity(self):
|
||||
"""Return the previously cached UIDVALIDITY value
|
||||
|
||||
:returns: UIDVALIDITY as (long) number or None, if None had been
|
||||
saved yet."""
|
||||
if hasattr(self, '_base_saved_uidvalidity'):
|
||||
return self._base_saved_uidvalidity
|
||||
uidfilename = self._getuidfilename()
|
||||
|
@ -70,7 +70,7 @@ class MachineUI(UIBase):
|
||||
def validityproblem(s, folder):
|
||||
s._printData('validityproblem', "%s\n%s\n%s\n%s" % \
|
||||
(folder.getname(), folder.getrepository().getname(),
|
||||
folder.getsaveduidvalidity(), folder.get_uidvalidity()))
|
||||
folder.get_saveduidvalidity(), folder.get_uidvalidity()))
|
||||
|
||||
def connecting(s, hostname, port):
|
||||
s._printData('connecting', "%s\n%s" % (hostname, str(port)))
|
||||
|
@ -311,7 +311,7 @@ class UIBase(object):
|
||||
"(saved %d; got %d); skipping it. Please see FAQ "
|
||||
"and manual on how to handle this." % \
|
||||
(folder, folder.getrepository(),
|
||||
folder.getsaveduidvalidity(), folder.get_uidvalidity()))
|
||||
folder.get_saveduidvalidity(), folder.get_uidvalidity()))
|
||||
|
||||
def loadmessagelist(self, repos, folder):
|
||||
self.logger.debug("Loading message list for %s[%s]" % (
|
||||
|
Loading…
Reference in New Issue
Block a user