sugar4.bundle
Activity bundle management and packaging utilities.
Submodules
Exceptions
A version cannot be normalized, because: |
Classes
A Sugar activity bundle |
|
A Sugar activity, content module, etc. |
|
Normalize a version string. |
|
A Sugar content bundle |
Package Contents
- class sugar4.bundle.ActivityBundle(path, translated=True)[source]
Bases:
sugar4.bundle.bundle.BundleA Sugar activity bundle
See http://wiki.sugarlabs.org/go/Development_Team/Almanac/Activity_Bundles for details
- MIME_TYPE = 'application/vnd.olpc-sugar'
- bundle_exec = None
- 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.
- class sugar4.bundle.Bundle(path)[source]
Bases:
objectA 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.
- class sugar4.bundle.NormalizedVersion(activity_version)[source]
Bases:
objectNormalize a version string.
- Parameters:
activity_version (str) – the version string
- Raises:
- parts = []
- exception sugar4.bundle.InvalidVersionError[source]
Bases:
Exception- A version cannot be normalized, because:
the object is not a string,
the string does not match the regular expression, or
the string has a leading zero in a version part.
Initialize self. See help(type(self)) for accurate signature.
- class sugar4.bundle.ContentBundle(path)[source]
Bases:
sugar4.bundle.bundle.BundleA Sugar content bundle
See http://wiki.laptop.org/go/Content_bundles for details
- MIME_TYPE = 'application/vnd.olpc-content'