MediaObject is called Media in some places

svn: r16943
This commit is contained in:
Doug Blank 2011-03-27 12:49:52 +00:00
parent 15d39f8b3f
commit 763808c225

View File

@ -12,6 +12,8 @@ def make_filter(dbstate, uistate, objclass, gramps_ids, title=None):
>>> make_filter(dbstate, uistate, 'Person', ['I0003', ...]) >>> make_filter(dbstate, uistate, 'Person', ['I0003', ...])
""" """
if objclass == "Media":
objclass = "MediaObject"
FilterClass = Filters.GenericFilterFactory(objclass) FilterClass = Filters.GenericFilterFactory(objclass)
rule = getattr(getattr(Filters.Rules, objclass),'RegExpIdOf') rule = getattr(getattr(Filters.Rules, objclass),'RegExpIdOf')
filter = FilterClass() filter = FilterClass()