sugar3.bundle.activitybundle module

Sugar activity bundles

UNSTABLE.

class sugar3.bundle.activitybundle.ActivityBundle(path, translated=True)

Bases: sugar3.bundle.bundle.Bundle

A Sugar activity bundle

See http://wiki.sugarlabs.org/go/Development_Team/Almanac/Activity_Bundles for details

MIME_TYPE = 'application/vnd.olpc-sugar'
get_activity_version()

Get the activity version

get_bundle_id()

Get the activity bundle id

get_command()

Get the command to execute to launch the activity factory

get_description()

Get the description for the activity. The description is a pace of multi paragraph text about the activity. It is written in a HTML subset using only the p, ul, li and ol tags.

get_icon()

Get the activity icon name

get_icon_filename()

Get the icon file name

get_icons_path()

Get the icons path inside the (installed) activity bundle.

get_locale_path()

Get the locale path inside the (installed) activity bundle.

get_max_participants()

Get maximum number of participants in share

get_mime_types()

Get the MIME types supported by the activity

get_name()

Get the activity user-visible name.

get_show_launcher()

Get whether there should be a visible launcher for the activity

get_single_instance()

Get whether there should be a single instance for the activity

get_summary()

Get the summary that describe the activity

get_tags()

Get the tags that describe the activity

install()
install_mime_type(install_path)

Update the mime type database and install the mime type icon

is_user_activity()
uninstall(force=False, delete_profile=False)
sugar3.bundle.activitybundle.get_bundle_instance(path, translated=True)