Libosinfo.Loader

g GObject.Object GObject.Object Libosinfo.Loader Libosinfo.Loader GObject.Object->Libosinfo.Loader

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_db ()

process_default_path ()

process_local_path ()

process_path (path)

process_system_path ()

process_uri (uri)

process_user_path ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Libosinfo.Loader(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Libosinfo.LoaderClass

classmethod new()
Returns:

a loader object

Return type:

Libosinfo.Loader

Create a new database loader

get_db()
Returns:

the database

Return type:

Libosinfo.Db

Retrieves the database being populated

process_default_path()
Raises:

GLib.Error

process_local_path()
Raises:

GLib.Error

Loads data from the local path.

New in version 0.2.8.

process_path(path)
Parameters:

path (str) – the fully qualified path

Raises:

GLib.Error

Loads data from the specified path. If the path points to a file, that will be loaded as XML Otherwise it can point to a directory which will be recursively traversed, loading all files as XML.

process_system_path()
Raises:

GLib.Error

Loads data from the system path.

New in version 0.2.8.

process_uri(uri)
Parameters:

uri (str) – the data source URI

Raises:

GLib.Error

Loads data from the specified URI. If the URI points to a file, that will be loaded as XML Otherwise it can point to a directory which will be recursively traversed, loading all files as XML.

process_user_path()
Raises:

GLib.Error

Loads data from user path.

New in version 0.2.8.