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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Boxiang Sun
erp5
Commits
b330fb33
Commit
b330fb33
authored
Sep 24, 2019
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_knowledge_pad_ui_test: pass correct arguments to relation setter methods
parent
5f346790
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bt5/erp5_knowledge_pad_ui_test/SkinTemplateItem/portal_skins/erp5_knowledge_pad_ui_test/Zuite_AddGadgetToActivePad.py
.../erp5_knowledge_pad_ui_test/Zuite_AddGadgetToActivePad.py
+1
-1
No files found.
bt5/erp5_knowledge_pad_ui_test/SkinTemplateItem/portal_skins/erp5_knowledge_pad_ui_test/Zuite_AddGadgetToActivePad.py
View file @
b330fb33
...
@@ -10,7 +10,7 @@ contained_gadgets = [x.getSpecialiseValue().getRelativeUrl() \
...
@@ -10,7 +10,7 @@ contained_gadgets = [x.getSpecialiseValue().getRelativeUrl() \
if
gadget_relative_url
not
in
contained_gadgets
:
if
gadget_relative_url
not
in
contained_gadgets
:
# add only if not there
# add only if not there
knowledge_box
=
active_pad
.
newContent
(
portal_type
=
'Knowledge Box'
)
knowledge_box
=
active_pad
.
newContent
(
portal_type
=
'Knowledge Box'
)
knowledge_box
.
setSpecialise
Value
(
gadget_relative_url
)
knowledge_box
.
setSpecialise
(
gadget_relative_url
)
knowledge_box
.
visible
()
knowledge_box
.
visible
()
else
:
else
:
# reuse gadget
# reuse gadget
...
...
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