Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/model
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-10-29 18:05:09 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-10-29 18:05:09 (GMT)
commitd150ac40cc3a6a22111131799528c8090a356ee1 (patch)
treef7d19ac2fa7c662e9611e235898ee2514f988cb7 /shell/model
parent87274fd89f0c127f05cd34ad912b47a185c4b0e3 (diff)
More work on bundles support
Diffstat (limited to 'shell/model')
-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