| Index: lib/dom/scripts/database.py
|
| diff --git a/lib/dom/scripts/database.py b/lib/dom/scripts/database.py
|
| index 4c9ef0947e6c94581031c649d1f91ad0d4a79e96..387cc3fb18e1ea176293f2cefd23a6a0f8105da3 100755
|
| --- a/lib/dom/scripts/database.py
|
| +++ b/lib/dom/scripts/database.py
|
| @@ -225,3 +225,12 @@ class Database(object):
|
| if os.path.exists(file_path):
|
| _logger.debug('deleting %s' % file_path)
|
| os.remove(file_path)
|
| +
|
| + def Hierarchy(self, interface):
|
| + yield interface
|
| + for parent in interface.parents:
|
| + parent_name = parent.type.id
|
| + if not self.HasInterface(parent.type.id):
|
| + continue
|
| + for parent_interface in self.Hierarchy(self.GetInterface(parent.type.id)):
|
| + yield parent_interface
|
|
|