Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Rafael Monnerat
erp5
Commits
33a5a2be
Commit
33a5a2be
authored
Sep 01, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
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
))
...
...
bt5/erp5_web_shadir/bt/revision
View file @
33a5a2be
66
\ No newline at end of file
67
\ No newline at end of file
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