Commit 33a5a2be authored by Łukasz Nowak's avatar Łukasz Nowak

Use catalog explicitly and fetch only published documents.

parent 17e0d60b
......@@ -66,7 +66,9 @@ def WebSection_getDocumentValue(self, key, portal=None, language=None,\
# Return the SIGNATURE file, if the document exists.
if data_set is not None:
document_list = [json.loads(document.getData()) \
for document in data_set.getFollowUpRelatedValueList()]
for document in portal.portal_catalog(
follow_up_uid=data_set.getUid(),
validation_state='published')]
temp_file = newTempFile(self, '%s.txt' % key)
temp_file.setData(json.dumps(document_list))
......
66
\ No newline at end of file
67
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment