diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-11-02 10:10:37 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-11-02 10:10:37 (GMT) |
commit | 26b04db5e3bb803d96f0d3e42b8048d49c7c8486 (patch) | |
tree | bf00c3cfd6a92147573ac1ec339a014f0d76311c | |
parent | fcd4ebb281dba75402a54a8f97432c72ef8c6d01 (diff) |
Add activity_version support
-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 |