Module cookielib :: Class FileCookieJar
[hide private]
[frames] | no frames]

_ClassType FileCookieJar

CookieJar --+
            |
           FileCookieJar
Known Subclasses:

CookieJar that can be loaded from and saved to a file.

Instance Methods [hide private]
 
__init__(self, filename=None, delayload=False, policy=None)
Cookies are NOT loaded from the named file until either the .load() or .revert() method is called.
 
save(self, filename=None, ignore_discard=False, ignore_expires=False)
Save cookies to a file.
 
load(self, filename=None, ignore_discard=False, ignore_expires=False)
Load cookies from a file.
 
revert(self, filename=None, ignore_discard=False, ignore_expires=False)
Clear all cookies and reload cookies from a saved file.

Inherited from CookieJar: __iter__, __len__, __repr__, __str__, add_cookie_header, clear, clear_expired_cookies, clear_session_cookies, extract_cookies, make_cookies, set_cookie, set_cookie_if_ok, set_policy

Class Variables [hide private]

Inherited from CookieJar: domain_re, dots_re, magic_re, non_word_re, quote_re, strict_domain_re

Method Details [hide private]

__init__(self, filename=None, delayload=False, policy=None)
(Constructor)

 

Cookies are NOT loaded from the named file until either the .load() or .revert() method is called.

Overrides: CookieJar.__init__

revert(self, filename=None, ignore_discard=False, ignore_expires=False)

 

Clear all cookies and reload cookies from a saved file.

Raises LoadError (or IOError) if reversion is not successful; the object's state will not be altered if this happens.