Soup.CookieJarDB¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Cookie-storage filename |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Soup.CookieJarDB(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Database-based Cookie Jar.
Soup.CookieJarDB
is a [class`CookieJar`] that reads cookies from and writes them to a sqlite database in the new Mozilla format.(This is identical to
SoupCookieJarSqlite
in libsoup-gnome; it has just been moved into libsoup proper, and renamed to avoid conflicting.)- classmethod new(filename, read_only)¶
- Parameters:
- Returns:
the new
Soup.CookieJar
- Return type:
Creates a
Soup.CookieJarDB
.filename will be read in at startup to create an initial set of cookies. If read_only is
False
, then the non-session cookies will be written to filename when the [signal`CookieJar`:py:func:::changed<Soup.CookieJarDB.signals.changed>] signal is emitted from the jar. (If read_only isTrue
, then the cookie jar will only be used for this session, and changes made to it will be lost when the jar is destroyed.)