Fix FilterParser for much older 3.x custom_filters.xml files (#715)

Fixes #8075

Fixes #10669

Fixes #10516
This commit is contained in:
Paul Culley 2018-11-27 21:36:41 -06:00 committed by Sam Manzi
parent 6506e85ea9
commit 21206af12b

View File

@ -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'])