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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
erp5
Commits
49ef191d
Commit
49ef191d
authored
Dec 27, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
administration: do not pass empty list to catalog
to prevent a warning Also reindent long too long line
parent
e559ecd5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Alarm_activateCheckConsistency.py
...ins/erp5_administration/Alarm_activateCheckConsistency.py
+10
-2
No files found.
bt5/erp5_administration/SkinTemplateItem/portal_skins/erp5_administration/Alarm_activateCheckConsistency.py
View file @
49ef191d
...
@@ -13,8 +13,16 @@ portal = context.getPortalObject()
...
@@ -13,8 +13,16 @@ portal = context.getPortalObject()
if
query_string
is
not
None
:
if
query_string
is
not
None
:
kw
.
update
(
SearchableText
=
query_string
)
kw
.
update
(
SearchableText
=
query_string
)
kw
.
update
(
parent_uid
=
[
portal
.
restrictedTraverse
(
module
).
getUid
()
for
module
in
context
.
getProperty
(
'module_list'
)
or
[]])
parent_uid
=
[
portal
.
restrictedTraverse
(
module
).
getUid
()
for
module
in
context
.
getProperty
(
'module_list'
)
or
[]]
if
parent_uid
:
kw
.
update
(
parent_uid
=
parent_uid
)
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'Base_checkAlarmConsistency'
,
method_kw
=
{
'fixit'
:
fixit
,
'active_process'
:
active_process
},
activate_kw
=
{
'tag'
:
tag
,
'priority'
:
8
},
**
kw
)
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'Base_checkAlarmConsistency'
,
method_kw
=
{
'fixit'
:
fixit
,
'active_process'
:
active_process
},
activate_kw
=
{
'tag'
:
tag
,
'priority'
:
8
},
**
kw
)
context
.
activate
(
after_tag
=
tag
).
getId
()
context
.
activate
(
after_tag
=
tag
).
getId
()
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