Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model/ShellModel.py
diff options
context:
space:
mode:
Diffstat (limited to 'shell/model/ShellModel.py')
-rw-r--r--shell/model/ShellModel.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/shell/model/ShellModel.py b/shell/model/ShellModel.py
index cb8747b..350666d 100644
--- a/shell/model/ShellModel.py
+++ b/shell/model/ShellModel.py
@@ -15,6 +15,8 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
from sugar.presence import PresenceService
+from sugar.activity.bundleregistry import BundleRegistry
+from sugar import env
from model.Friends import Friends
from model.MeshModel import MeshModel
from model.Owner import ShellOwner
@@ -28,9 +30,16 @@ class ShellModel:
self._owner = ShellOwner()
self._owner.announce()
+
self._friends = Friends()
self._mesh = MeshModel()
+ self._bundle_registry = BundleRegistry()
+ self._bundle_registry.add_search_path(env.get_bundles_path())
+
+ def get_bundle_registry(self):
+ return self._bundle_registry
+
def get_mesh(self):
return self._mesh