lab.nexedi.com will be down from Thursday, 20 March 2025, 07:30:00 UTC for a duration of approximately 2 hours

Commit 9b3e52a2 authored by Romain Courteaud's avatar Romain Courteaud 🐙

erp5_credential: reuse Base_reindexAndSenseAlarm

parent 45bb051b
document = state_change['object']
alarm = document.getPortalObject().portal_alarms.accept_submitted_credentials
if alarm.isEnabled():
tag = document.getRelativeUrl() + '_reindex'
document.reindexObject(activate_kw={'tag': tag})
alarm.activate(activity='SQLQueue', after_tag=tag).activeSense()
state_change['object'].Base_reindexAndSenseAlarm(['accept_submitted_credentials'])
......@@ -60,6 +60,12 @@
</tuple>
</value>
</item>
<item>
<key> <string>description</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>script_Call_alarmActiveSense</string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment