Soup.CookieJarDB

g GObject.GInterface GObject.GInterface Soup.SessionFeature Soup.SessionFeature GObject.GInterface->Soup.SessionFeature GObject.Object GObject.Object Soup.CookieJar Soup.CookieJar GObject.Object->Soup.CookieJar Soup.CookieJarDB Soup.CookieJarDB Soup.CookieJar->Soup.CookieJarDB Soup.SessionFeature->Soup.CookieJar

Subclasses:

None

Methods

Inherited:

Soup.CookieJar (14), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (filename, read_only)

Virtual Methods

Inherited:

Soup.CookieJar (3), GObject.Object (7)

Properties

Inherited:

Soup.CookieJar (2)

Name

Type

Flags

Short Description

filename

str

r/w/co

Cookie-storage filename

Signals

Inherited:

Soup.CookieJar (1), GObject.Object (1)

Fields

Inherited:

Soup.CookieJar (1), GObject.Object (1)

Class Details

class Soup.CookieJarDB(**kwargs)
Bases:

Soup.CookieJar

Abstract:

No

Structure:

Soup.CookieJarDBClass

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:
  • filename (str) – the filename to read to/write from, or None

  • read_only (bool) – True if filename is read-only

Returns:

the new Soup.CookieJar

Return type:

Soup.CookieJar

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 is True, then the cookie jar will only be used for this session, and changes made to it will be lost when the jar is destroyed.)

Property Details

Soup.CookieJarDB.props.filename
Name:

filename

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Cookie-storage filename.