Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tristan Cavelier
erp5
Commits
33a5a2be
Commit
33a5a2be
authored
13 years ago
by
Łukasz Nowak
Browse files
Options
Download
Email Patches
Plain Diff
Use catalog explicitly and fetch only published documents.
parent
17e0d60b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
+3
-1
bt5/erp5_web_shadir/bt/revision
bt5/erp5_web_shadir/bt/revision
+1
-1
No files found.
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
View file @
33a5a2be
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_web_shadir/bt/revision
View file @
33a5a2be
66
\ No newline at end of file
67
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment