Another try to match initial question:
- Person filter: Descendants of my grand-father
- Citations SuperTool filter : Citations matching citations in Person filter results
Script V2 (I’ve made some changes to make it working with every filters where citations exist):
[Gramps SuperTool script file]
version=1
[title]
SuperTool-Citations - Citations matching citations in another namespace filter results
[category]
Citations
[initial_statements]
filter_ns = "Person" # Valid values: Person, Event, ...
filter_name = "Descendants d'André Legoux" # Any filter name defined in previous namespace
ns_proxy = filter_ns + "Proxy"
ns_with_citations = ["Person", "Event", "Place", "Media", "Family"]
authorized = True if filter_ns in ns_with_citations else False
if authorized:
try:
sel_objects = filter(filter_name, namespace=filter_ns)
except:
authorized = False
[statements]
found = False
if authorized and filter_ns != namespace:
for c in citators:
if type(c).__name__ == ns_proxy:
if sel_objects(c):
found = True
break
[filter]
found
[expressions]
source.title, page
[scope]
all
[unwind_lists]
False
[commit_changes]
False
[summary_only]
False
PS: @kku Could you make namespace property available in Initial statements? If so it could be possible to test it there (In my case I could set my authorized variable to false there without need to test it every time in Statements)
