web_renderjs_ui: use context-free getDocumentValueList for reference lookups
When looking up a document by reference, using getDocumentValueList from the context of a web site / web section might not find the documents, depending on the predicates defined on the web site / web section.
... | @@ -18,7 +18,7 @@ web_page_by_reference = {} | ... | @@ -18,7 +18,7 @@ web_page_by_reference = {} |
if web_page_reference_list: | if web_page_reference_list: | ||
web_page_list = [ | web_page_list = [ | ||
b.getObject() for b in | b.getObject() for b in | ||
context.getDocumentValueList(reference=web_page_reference_list)] | portal.portal_catalog.getDocumentValueList(reference=web_page_reference_list)] | ||
|
|||
web_page_by_reference = {wp.getReference(): wp.getTextContent() for wp in web_page_list} | web_page_by_reference = {wp.getReference(): wp.getTextContent() for wp in web_page_list} | ||
for web_page_reference in web_page_reference_list: | for web_page_reference in web_page_reference_list: | ||
... | ... |