MediaObject is called Media in some places

svn: r16944
This commit is contained in:
Doug Blank 2011-03-27 12:50:29 +00:00
parent 4e4759112c
commit 2e0d8d5d5a

View File

@ -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()