Helpviewer/CookieJar/CookieJar.py

changeset 2954
bf0215fe12d1
parent 2302
f29e9405c851
child 3002
6ffc581f00f1
equal deleted inserted replaced
2953:703452a2876f 2954:bf0215fe12d1
188 Preferences.setHelp("KeepCookiesUntil", self.__keepCookies) 188 Preferences.setHelp("KeepCookiesUntil", self.__keepCookies)
189 Preferences.setHelp("FilterTrackingCookies", self.__filterTrackingCookies) 189 Preferences.setHelp("FilterTrackingCookies", self.__filterTrackingCookies)
190 190
191 def __purgeOldCookies(self): 191 def __purgeOldCookies(self):
192 """ 192 """
193 Private method to purge old cookies 193 Private method to purge old cookies.
194 """ 194 """
195 cookies = self.allCookies() 195 cookies = self.allCookies()
196 if len(cookies) == 0: 196 if len(cookies) == 0:
197 return 197 return
198 198
313 self.__saveTimer.changeOccurred() 313 self.__saveTimer.changeOccurred()
314 314
315 def keepPolicy(self): 315 def keepPolicy(self):
316 """ 316 """
317 Private method to get the keep policy. 317 Private method to get the keep policy.
318
319 @return keep policy
318 """ 320 """
319 if not self.__loaded: 321 if not self.__loaded:
320 self.load() 322 self.load()
321 return self.__keepCookies 323 return self.__keepCookies
322 324

eric ide

mercurial