From 9c6953067fd1132f778faa7e926e9049edf9f4c3 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 20 Jun 2011 01:33:18 +0200 Subject: Rewriting of the get_meta() function. --- lib/parser.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/parser.py') diff --git a/lib/parser.py b/lib/parser.py index 828648f..7912b29 100644 --- a/lib/parser.py +++ b/lib/parser.py @@ -68,8 +68,11 @@ class Generic_parser(): ''' return a dict with all the meta of the file ''' - #am I useless ? - return self.meta + metadata = [] + for field in self.editor: + if self._should_remove(field): + metadata.append(field.name) + return metadata def _should_remove(self, key): ''' -- cgit v1.3