From: Thomas Fillon Date: Mon, 15 Sep 2014 10:28:19 +0000 (+0200) Subject: feature(analyzer.core): Add a function to display ids contains in analyzer results X-Git-Tag: 0.6~4^2~39 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=1ac6ad360af2531f1a44828b0b50bf9d29874479;p=timeside.git feature(analyzer.core): Add a function to display ids contains in analyzer results --- diff --git a/timeside/analyzer/core.py b/timeside/analyzer/core.py index a6f20e6..23954a6 100644 --- a/timeside/analyzer/core.py +++ b/timeside/analyzer/core.py @@ -947,6 +947,9 @@ class AnalyzerResultContainer(dict): if res.id_metadata.id == result_id: return res + def list_id(self): + return [res.id for res in self.values()] + def to_xml(self, output_file=None): import xml.etree.ElementTree as ET