sugar3.bundle.bundle module

Sugar bundle file handler

UNSTABLE.

exception sugar3.bundle.bundle.AlreadyInstalledException

Bases: exceptions.Exception

class sugar3.bundle.bundle.Bundle(path)

Bases: object

A Sugar activity, content module, etc.

The bundle itself may be either a zip file or a directory hierarchy, with metadata about the bundle stored various files inside it.

This is an abstract base class. See ActivityBundle and ContentBundle for more details on those bundle types.

get_file(filename)
get_installation_time()

Get a timestamp representing the time at which this activity was installed.

get_path()

Get the bundle path.

get_show_launcher()
is_dir(filename)
is_file(filename)
exception sugar3.bundle.bundle.InvalidPathException

Bases: exceptions.Exception

exception sugar3.bundle.bundle.MalformedBundleException

Bases: exceptions.Exception

exception sugar3.bundle.bundle.NotInstalledException

Bases: exceptions.Exception

exception sugar3.bundle.bundle.RegistrationException

Bases: exceptions.Exception

exception sugar3.bundle.bundle.ZipExtractException

Bases: exceptions.Exception

Previous topic

sugar3.bundle.activitybundle module

Next topic

sugar3.bundle.bundleversion module

This Page