Commit ba0e0d98 by Kazuhiko Shiozaki

get DomainTool from a portal to reduce _aq_dynamic calls.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35947 20353a03-c40f-0410-a6d1-a30d3c3de9de
1 parent a1d729f9
......@@ -130,7 +130,7 @@ class RuleTool (UniqueObject, Folder):
- the rule must be of a known portal type
- Predicate criterions can be used (like start_date_range_min)
"""
domain_tool = getToolByName(self, "portal_domains")
domain_tool = getToolByName(self.getPortalObject(), "portal_domains")
if tested_base_category_list is None:
tested_base_category_list = []
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!