Commit fd695133 authored by Jérome Perrin's avatar Jérome Perrin

alarm: use unrestrictedSearchResults to getLastActiveProcess

This API is not supposed to take into account security,
unrestrictedSearchResults is usually a bit faster
parent ca65c74e
...@@ -382,7 +382,7 @@ Alarm Tool Node: %s ...@@ -382,7 +382,7 @@ Alarm Tool Node: %s
limit = 1 limit = 1
else: else:
limit = self.isActive() and 2 or 1 limit = self.isActive() and 2 or 1
active_process_list = self.getPortalObject().portal_catalog( active_process_list = self.getPortalObject().portal_catalog.unrestrictedSearchResults(
portal_type='Active Process', limit=limit, portal_type='Active Process', limit=limit,
sort_on=(('creation_date', 'DESC'), sort_on=(('creation_date', 'DESC'),
('id', 'DESC', 'UNSIGNED'),), ('id', 'DESC', 'UNSIGNED'),),
......
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