diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-02 16:21:00 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2006-11-02 16:21:00 (GMT) |
commit | a6503b8bd8092112323f06c5ab29337a01753597 (patch) | |
tree | 47d8b91d40fd85aad1cc66716da7ccfa8e32b2e8 /sugar | |
parent | 23565cfd483e38d3a64cd5980deea47cccb28581 (diff) | |
parent | 26b04db5e3bb803d96f0d3e42b8048d49c7c8486 (diff) |
Merge branch 'master' of git://dev.laptop.org/sugar
Diffstat (limited to 'sugar')
-rw-r--r-- | sugar/activity/bundle.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sugar/activity/bundle.py b/sugar/activity/bundle.py index 72d50fe..655868c 100644 --- a/sugar/activity/bundle.py +++ b/sugar/activity/bundle.py @@ -12,6 +12,7 @@ class Bundle: self._show_launcher = False self._valid = True self._path = path + self._activity_version = 0 info_path = os.path.join(path, 'activity', 'activity.info') if os.path.isfile(info_path): @@ -50,6 +51,9 @@ class Bundle: if cp.has_option(section, 'icon'): self._icon = cp.get(section, 'icon') + if cp.has_option(section, 'activity_version'): + self._activity_version = int(cp.get(section, 'activity_version')) + def is_valid(self): return self._valid @@ -69,6 +73,10 @@ class Bundle: """Get the activity icon name""" return self._icon + def get_activity_version(self): + """Get the activity version""" + return self._activity_version + def get_exec(self): """Get the command to execute to launch the activity factory""" return self._exec |