Get back mesh view to work. It got broken when refactoring bundles.

This commit is contained in:
Marco Pesenti Gritti
2006-12-20 13:58:29 +01:00
parent 99cce220cd
commit e023d1c345
2 changed files with 14 additions and 5 deletions
+7
View File
@@ -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)