def isStorageSessionTimeout():
    lastVisitTime = AccountSettings.getSessionSettings(
        LAST_STORAGE_VISITED_TIMESTAMP)
    return getCurrentTimestamp(
    ) - lastVisitTime > STORAGE_CONSTANTS.SESSION_TIMEOUT
示例#2
0
 def __loadFilters(self):
     if storage_helpers.isStorageSessionTimeout():
         return
     self._parseLoadedFilters(AccountSettings.getSessionSettings(self._getClientSectionKey()))
示例#3
0
 def _loadFilters(self):
     if isStorageSessionTimeout():
         return
     filterDict = AccountSettings.getSessionSettings(
         self._getClientSectionKey())
     self.__filterMask = filterDict['filterMask']