in pseudo-code, what I think you need is the following :
1) ft = req.get_new_filtered_tree() 2) ft.apply_filter("notag_tasks") 3) ft.get_node_nbrs()
(that's the spirit)
Once it's working, we could optimize by caching the number and not parsing the whole ft every time but, before optimisation, we should have it work.
in pseudo-code, what I think you need is the following :
1) ft = req.get_ new_filtered_ tree() filter( "notag_ tasks")
2) ft.apply_
3) ft.get_node_nbrs()
(that's the spirit)
Once it's working, we could optimize by caching the number and not parsing the whole ft every time but, before optimisation, we should have it work.