Commit df7d0a57 authored by Vincent Pelletier's avatar Vincent Pelletier

DomainTool: Only look categories up when using them.

parent 7dafd5ca
...@@ -157,6 +157,7 @@ class DomainTool(BaseTool): ...@@ -157,6 +157,7 @@ class DomainTool(BaseTool):
query_list.append(query) query_list.append(query)
if tested_base_category_list != []:
# Add category selection # Add category selection
if tested_base_category_list is None: if tested_base_category_list is None:
if acquired: if acquired:
...@@ -172,8 +173,6 @@ class DomainTool(BaseTool): ...@@ -172,8 +173,6 @@ class DomainTool(BaseTool):
extend = category_list.extend extend = category_list.extend
for tested_base_category in tested_base_category_list: for tested_base_category in tested_base_category_list:
extend(getter(tested_base_category, base=1)) extend(getter(tested_base_category, base=1))
if tested_base_category_list != []:
preferred_predicate_category_list = portal.portal_preferences.getPreferredPredicateCategoryList() preferred_predicate_category_list = portal.portal_preferences.getPreferredPredicateCategoryList()
if (preferred_predicate_category_list and if (preferred_predicate_category_list and
......
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