sugar4.bundle.activitybundle

Sugar activity bundles

UNSTABLE.

Classes

ActivityBundle

A Sugar activity bundle

Functions

get_bundle_instance(path[, translated])

Module Contents

class sugar4.bundle.activitybundle.ActivityBundle(path, translated=True)[source]

Bases: sugar4.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'[source]
bundle_exec = None[source]
get_locale_path()[source]

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

get_icons_path()[source]

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

get_name()[source]

Get the activity user-visible name.

get_bundle_id()[source]

Get the activity bundle id

get_icon()[source]

Get the activity icon name

get_icon_filename()[source]

Get the icon file name

get_activity_version()[source]

Get the activity version

get_command()[source]

Get the command to execute to launch the activity factory

get_mime_types()[source]

Get the MIME types supported by the activity

get_tags()[source]

Get the tags that describe the activity

get_summary()[source]

Get the summary that describe the activity

get_description()[source]

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_single_instance()[source]

Get whether there should be a single instance for the activity

get_max_participants()[source]

Get maximum number of participants in share

get_show_launcher()[source]

Get whether there should be a visible launcher for the activity

install()[source]
install_mime_type(install_path)[source]

Update the mime type database and install the mime type icon

uninstall(force=False, delete_profile=False)[source]
is_user_activity()[source]
sugar4.bundle.activitybundle.get_bundle_instance(path, translated=True)[source]