Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
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
Romain Courteaud
slapos.core
Commits
47261cac
Commit
47261cac
authored
Oct 14, 2024
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_crm: fixup bulletin?
parent
e3264841
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Bulletin_checkEventToPropagate.py
...s/slapos_crm_monitoring/Bulletin_checkEventToPropagate.py
+7
-4
No files found.
master/bt5/slapos_crm/SkinTemplateItem/portal_skins/slapos_crm_monitoring/Bulletin_checkEventToPropagate.py
View file @
47261cac
...
@@ -19,13 +19,16 @@ note_list = portal.portal_catalog(
...
@@ -19,13 +19,16 @@ note_list = portal.portal_catalog(
grouped_instance_list
=
portal
.
portal_catalog
(
grouped_instance_list
=
portal
.
portal_catalog
(
portal_type
=
[
'Software Instance'
,
'Slave Instance'
],
portal_type
=
[
'Software Instance'
,
'Slave Instance'
],
group_by
=
[
'specialise_uid'
],
group_by
=
[
'specialise_uid'
],
aggregate__uid
=
[
x
.
uid
for
x
in
compute_node
.
contentValues
(
portal_type
=
'Compute Partition'
)]
aggregate__uid
=
[
x
.
getUid
()
for
x
in
compute_node
.
contentValues
(
portal_type
=
'Compute Partition'
)]
)
)
context
.
log
(
'grouped_instance_tree_uid_list'
,
[
x
.
getSpecialiseUid
()
for
x
in
grouped_instance_list
])
grouped_instance_tree_list
=
portal
.
portal_catalog
(
grouped_instance_tree_list
=
portal
.
portal_catalog
(
portal_type
=
'Instance Tree'
,
portal_type
=
'Instance Tree'
,
group_by
=
[
'destination_section_uid'
],
#
group_by=['destination_section_uid'],
uid
=
[
x
.
getSpecialiseUid
()
for
x
in
grouped_instance_list
]
uid
=
[
x
.
getSpecialiseUid
()
for
x
in
grouped_instance_list
]
)
)
customer_list
=
[
x
.
getDestinationSectionValue
()
for
x
in
grouped_instance_tree_list
]
customer_list
=
[
x
.
getDestinationSectionValue
()
for
x
in
grouped_instance_tree_list
]
customer_uid_list
=
[
x
.
getUid
()
for
x
in
customer_list
]
customer_uid_list
=
[
x
.
getUid
()
for
x
in
customer_list
]
...
@@ -36,7 +39,7 @@ for note in note_list:
...
@@ -36,7 +39,7 @@ for note in note_list:
# Search existing ones
# Search existing ones
acknowledgement_customer_uid_list
=
[
x
.
getDestinationUid
()
for
x
in
portal
.
portal_catalog
(
acknowledgement_customer_uid_list
=
[
x
.
getDestinationUid
()
for
x
in
portal
.
portal_catalog
(
portal_type
=
'Acknowledgement'
,
portal_type
=
'Acknowledgement'
,
destination_uid
=
customer_uid_list
,
destination_
_
uid
=
customer_uid_list
,
follow_up__uid
=
bulletin
.
getUid
(),
follow_up__uid
=
bulletin
.
getUid
(),
causality__uid
=
note
.
getUid
()
causality__uid
=
note
.
getUid
()
)]
)]
...
@@ -52,5 +55,5 @@ for note in note_list:
...
@@ -52,5 +55,5 @@ for note in note_list:
note
.
getResource
(),
note
.
getResource
(),
note
.
getTextContent
(),
note
.
getTextContent
(),
note
.
getContentType
(),
note
.
getContentType
(),
destination
=
customer
destination
=
customer
.
getRelativeUrl
()
)
)
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