Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/shell/bundleregistry.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-10-09 11:15:06 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-10-09 11:15:06 (GMT)
commit6073a396b36c7d3da15ee361b601e94b010c6e92 (patch)
treee862e652c460ab193c558535f86316c687ff140c /services/shell/bundleregistry.py
parent57961d17bcb41d6606ea3c5293473b49da705d3c (diff)
Rename activity service_name to bundle_id
Diffstat (limited to 'services/shell/bundleregistry.py')
-rw-r--r--services/shell/bundleregistry.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/shell/bundleregistry.py b/services/shell/bundleregistry.py
index bf8a4f1..cbf5464 100644
--- a/services/shell/bundleregistry.py
+++ b/services/shell/bundleregistry.py
@@ -61,10 +61,10 @@ class BundleRegistry(gobject.GObject):
self._search_path = []
self._mime_defaults = _load_mime_defaults()
- def get_bundle(self, service_name):
+ def get_bundle(self, bundle_id):
"""Returns an bundle given his service name"""
for bundle in self._bundles:
- if bundle.get_service_name() == service_name:
+ if bundle.get_bundle_id() == bundle_id:
return bundle
return None
@@ -116,7 +116,7 @@ class BundleRegistry(gobject.GObject):
result = []
for bundle in self._bundles:
if bundle.get_mime_types() and mime_type in bundle.get_mime_types():
- if self.get_default_for_type(mime_type) == bundle.get_service_name():
+ if self.get_default_for_type(mime_type) == bundle.get_bundle_id():
result.insert(0, bundle)
else:
result.append(bundle)