Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Cédric Le Ninivin
erp5
Commits
df7d0a57
Commit
df7d0a57
authored
Jun 10, 2017
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DomainTool: Only look categories up when using them.
parent
7dafd5ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
16 deletions
+15
-16
product/ERP5/Tool/DomainTool.py
product/ERP5/Tool/DomainTool.py
+15
-16
No files found.
product/ERP5/Tool/DomainTool.py
View file @
df7d0a57
...
@@ -157,23 +157,22 @@ class DomainTool(BaseTool):
...
@@ -157,23 +157,22 @@ class DomainTool(BaseTool):
query_list
.
append
(
query
)
query_list
.
append
(
query
)
# Add category selection
if
tested_base_category_list
is
None
:
if
acquired
:
category_list
=
context
.
getAcquiredCategoryList
()
else
:
category_list
=
context
.
getCategoryList
()
else
:
if
acquired
:
getter
=
context
.
getAcquiredCategoryMembershipList
else
:
getter
=
context
.
getCategoryMembershipList
category_list
=
[]
extend
=
category_list
.
extend
for
tested_base_category
in
tested_base_category_list
:
extend
(
getter
(
tested_base_category
,
base
=
1
))
if
tested_base_category_list
!=
[]:
if
tested_base_category_list
!=
[]:
# Add category selection
if
tested_base_category_list
is
None
:
if
acquired
:
category_list
=
context
.
getAcquiredCategoryList
()
else
:
category_list
=
context
.
getCategoryList
()
else
:
if
acquired
:
getter
=
context
.
getAcquiredCategoryMembershipList
else
:
getter
=
context
.
getCategoryMembershipList
category_list
=
[]
extend
=
category_list
.
extend
for
tested_base_category
in
tested_base_category_list
:
extend
(
getter
(
tested_base_category
,
base
=
1
))
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment