MediaObject is called Media in some places
svn: r16944
This commit is contained in:
parent
4e4759112c
commit
2e0d8d5d5a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user