diff options
| author | jvoisin | 2011-06-20 01:33:18 +0200 |
|---|---|---|
| committer | jvoisin | 2011-06-20 01:33:18 +0200 |
| commit | 9c6953067fd1132f778faa7e926e9049edf9f4c3 (patch) | |
| tree | 8671d832aaf30442e9e4017ebd0cefe6febbd634 /lib | |
| parent | 52f2fedd5d73807d42ba5c397c3e4c5348b47a47 (diff) | |
Rewriting of the get_meta() function.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/parser.py | 7 |
1 files changed, 5 insertions, 2 deletions
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(): | |||
| 68 | ''' | 68 | ''' |
| 69 | return a dict with all the meta of the file | 69 | return a dict with all the meta of the file |
| 70 | ''' | 70 | ''' |
| 71 | #am I useless ? | 71 | metadata = [] |
| 72 | return self.meta | 72 | for field in self.editor: |
| 73 | if self._should_remove(field): | ||
| 74 | metadata.append(field.name) | ||
| 75 | return metadata | ||
| 73 | 76 | ||
| 74 | def _should_remove(self, key): | 77 | def _should_remove(self, key): |
| 75 | ''' | 78 | ''' |
