From 21206af12b1d81d88169a4344444fb11c29c62cf Mon Sep 17 00:00:00 2001 From: Paul Culley Date: Tue, 27 Nov 2018 21:36:41 -0600 Subject: [PATCH] Fix FilterParser for much older 3.x custom_filters.xml files (#715) Fixes #8075 Fixes #10669 Fixes #10516 --- gramps/gen/filters/_filterparser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/filters/_filterparser.py b/gramps/gen/filters/_filterparser.py index a59b55cf8..830b36a44 100644 --- a/gramps/gen/filters/_filterparser.py +++ b/gramps/gen/filters/_filterparser.py @@ -62,6 +62,9 @@ class FilterParser(handler.ContentHandler): self.namespace = attrs['type'] else: self.namespace = "generic" + if self.namespace == 'MediaObject': + # deals with older custom filters + self.namespace = 'Media' elif tag == "filter": self.f = GenericFilterFactory(self.namespace)() self.f.set_name(attrs['name'])