MediaObject is called Media in some places
svn: r16943
This commit is contained in:
parent
15d39f8b3f
commit
763808c225
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user