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
Yusei Tahara
erp5
Commits
61b89012
Commit
61b89012
authored
Jul 13, 2016
by
Vincent Pelletier
Committed by
Sebastien Robin
Jul 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQLCatalog.getCatalogSearchTableIds: Simplify.
parent
98e6dbad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
product/ZSQLCatalog/SQLCatalog.py
product/ZSQLCatalog/SQLCatalog.py
+6
-12
No files found.
product/ZSQLCatalog/SQLCatalog.py
View file @
61b89012
...
@@ -1063,18 +1063,12 @@ class Catalog(Folder,
...
@@ -1063,18 +1063,12 @@ class Catalog(Folder,
"""Return selected tables of catalog which are used in JOIN.
"""Return selected tables of catalog which are used in JOIN.
catalaog is always first
catalaog is always first
"""
"""
search_tables
=
self
.
sql_search_tables
search_tables
=
list
(
self
.
sql_search_tables
)
or
[
'catalog'
]
if
len
(
search_tables
)
>
0
:
if
search_tables
[
0
]
!=
'catalog'
:
if
search_tables
[
0
]
!=
'catalog'
:
search_tables
=
[
'catalog'
]
+
[
x
for
x
in
search_tables
if
x
!=
'catalog'
]
result
=
[
'catalog'
]
# XXX: cast to tuple to avoid a mutable persistent property ?
for
t
in
search_tables
:
self
.
sql_search_tables
=
search_tables
if
t
!=
'catalog'
:
return
search_tables
result
.
append
(
t
)
self
.
sql_search_tables
=
result
else
:
self
.
sql_search_tables
=
[
'catalog'
]
return
self
.
sql_search_tables
security
.
declarePublic
(
'getCatalogSearchResultKeys'
)
security
.
declarePublic
(
'getCatalogSearchResultKeys'
)
def
getCatalogSearchResultKeys
(
self
):
def
getCatalogSearchResultKeys
(
self
):
...
...
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