diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-09 16:10:16 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2007-08-09 16:10:16 (GMT) |
commit | cff8ffc32895f3e304f843389c7d4a984502727e (patch) | |
tree | 1fdf4b73ec4fd5029db78bf8f83806b12f4626a3 /shell/view/Shell.py | |
parent | f00f3e2f8da0549a54f10ef20419ff6e11824685 (diff) |
Complete move to external bundle registry.
Diffstat (limited to 'shell/view/Shell.py')
-rw-r--r-- | shell/view/Shell.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py index af9036a..044cbde 100644 --- a/shell/view/Shell.py +++ b/shell/view/Shell.py @@ -26,6 +26,7 @@ import gtk import wnck from sugar.activity.activityhandle import ActivityHandle +from sugar import activity from sugar.activity import activityfactory from sugar.datastore import datastore from sugar import profile @@ -34,7 +35,6 @@ from view.ActivityHost import ActivityHost from view.frame.frame import Frame from view.keyhandler import KeyHandler from view.home.HomeWindow import HomeWindow -from model import bundleregistry from model.shellmodel import ShellModel from hardware import hardwaremanager @@ -116,16 +116,16 @@ class Shell(gobject.GObject): return self._frame def join_activity(self, bundle_id, activity_id): - activity = self.get_activity(activity_id) - if activity: - activity.present() + activity_host = self.get_activity(activity_id) + if activity_host: + activity_host.present() return # Get the service name for this activity, if # we have a bundle on the system capable of handling # this activity type - breg = bundleregistry.get_registry() - bundle = breg.get_bundle(bundle_id) + registry = activity.get_registry() + bundle = registry.get_activity(bundle_id) if not bundle: logging.error("Couldn't find activity for type %s" % bundle_id) return |