From 2e0d8d5d5a8647eae8a49aa36f428933cb72071e Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 27 Mar 2011 12:50:29 +0000 Subject: [PATCH] MediaObject is called Media in some places svn: r16944 --- src/gui/makefilter.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/makefilter.py b/src/gui/makefilter.py index 08c1ac12c..916f0b4e0 100644 --- a/src/gui/makefilter.py +++ b/src/gui/makefilter.py @@ -12,6 +12,8 @@ def make_filter(dbstate, uistate, objclass, gramps_ids, title=None): >>> make_filter(dbstate, uistate, 'Person', ['I0003', ...]) """ + if objclass == "Media": + objclass = "MediaObject" FilterClass = Filters.GenericFilterFactory(objclass) rule = getattr(getattr(Filters.Rules, objclass),'RegExpIdOf') filter = FilterClass()