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
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
8cf975dc
Commit
8cf975dc
authored
Apr 04, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_subscription_request: fixup searchAndActivate usage, to not conflict on the uid column
parent
a28edf4e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/Alarm_createSubscriptionRequestFromOrphanedItem.py
...equest/Alarm_createSubscriptionRequestFromOrphanedItem.py
+3
-1
No files found.
master/bt5/slapos_subscription_request/SkinTemplateItem/portal_skins/slapos_subscription_request/Alarm_createSubscriptionRequestFromOrphanedItem.py
View file @
8cf975dc
...
...
@@ -11,7 +11,9 @@ subscribed_uid_list = [x.uid for x in portal.portal_catalog(
sql_kw
=
{}
if
subscribed_uid_list
:
sql_kw
[
'uid'
]
=
NegatedQuery
(
SimpleQuery
(
uid
=
subscribed_uid_list
))
# Use 'catalog.uid', because searchAndActivate will use 'uid' to order the
# results and iterate other them
sql_kw
[
'catalog.uid'
]
=
NegatedQuery
(
SimpleQuery
(
uid
=
subscribed_uid_list
))
portal
.
portal_catalog
.
searchAndActivate
(
method_id
=
'Item_createSubscriptionRequest'
,
portal_type
=
[
"Compute Node"
,
"Instance Tree"
],
...
...
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