filteredTreeNodes // recursive
"Christian Meier" <[email protected]>
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello,
in ZMSContainerObject.filteredTreeNodes (line 912) the check for recursive
search in subtree does not work for meta_types=PAGEELEMENTS, because if ob
is a page-node, it is not appended (ob.isMetaType(meta_types)==FALSE) - and
so the first if-check is always TRUE - whether recursive is set to TRUE or
FALSE:
if not append or (append and recursive):
if ob.isPage():
rtn.extend(ob.filteredTreeNodes(REQUEST,meta_types,None,order_dir,None,recur
sive))
In my opinion the following condition is adequate for both - PAGES and
PAGEELEMENTS:
if ob.isPage() and recursive:
rtn.extend(ob.filteredTreeNodes(REQUEST,meta_types,None,order_dir,None,recur
sive))
Regards, Christian Meier