Commit b0ff42f9 authored by Ivan Tyagov's avatar Ivan Tyagov

Set more reasonable alarm periodicity.

After changing state make sure reindex happens.
parent 9af1ae70
......@@ -24,6 +24,12 @@
<key> <string>id</string> </key>
<value> <string>expire_authentication_events</string> </value>
</item>
<item>
<key> <string>periodicity_day_frequency</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>periodicity_hour</string> </key>
<value>
......@@ -38,7 +44,9 @@
</item>
<item>
<key> <string>periodicity_minute_frequency</string> </key>
<value> <int>5</int> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>periodicity_month</string> </key>
......
......@@ -72,9 +72,15 @@ kw = {\'portal_type\': \'Authentication Event\',\n
failure_list = portal.portal_catalog(**kw)\n
\n
for failure in failure_list:\n
failure.activate().expire(comment=\'System expire.\')\n
tag = \'expire_%s\' %failure.getUid()\n
failure.activate(tag = tag).expire(comment=\'System expire.\')\n
failure.activate(after_tag = tag).reindexObject()\n
</string> </value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>SystemEventModule_expireAuthenticationEventList</string> </value>
......
20
\ No newline at end of file
21
\ No newline at end of file
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