diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-20 12:58:29 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-12-20 12:58:29 (GMT) |
commit | e023d1c3451b8e32c5607f774f3187fd21cb9d7d (patch) | |
tree | e6e3cbbb623b37deb35412fe57962f31dae2a39f /sugar/activity | |
parent | 99cce220cde2710f9ba58847f4e49eede99f89e2 (diff) |
Get back mesh view to work. It got broken when refactoring bundles.
Diffstat (limited to 'sugar/activity')
-rw-r--r-- | sugar/activity/bundleregistry.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sugar/activity/bundleregistry.py b/sugar/activity/bundleregistry.py index aa7d70a..8b7c44a 100644 --- a/sugar/activity/bundleregistry.py +++ b/sugar/activity/bundleregistry.py @@ -33,6 +33,13 @@ class BundleRegistry: else: return None + def find_by_default_type(self, default_type): + """Find a bundle by the network service default type""" + for bundle in self._bundles.values(): + if bundle.get_default_type() == default_type: + return bundle + return None + def add_search_path(self, path): """Add a directory to the bundles search path""" self._search_path.append(path) |