From 26b04db5e3bb803d96f0d3e42b8048d49c7c8486 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Thu, 02 Nov 2006 10:10:37 +0000 Subject: Add activity_version support --- 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 -- cgit v0.9.1