From a6503b8bd8092112323f06c5ab29337a01753597 Mon Sep 17 00:00:00 2001 From: Tomeu Vizoso Date: Thu, 02 Nov 2006 16:21:00 +0000 Subject: Merge branch 'master' of git://dev.laptop.org/sugar --- (limited to 'sugar') 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