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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
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
Show 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,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
...
...
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