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