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
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
Xueyun Qian
erp5
Commits
bda506f9
Commit
bda506f9
authored
Feb 01, 2016
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "ZSQLCatalog.SQLCatalog: Ignore unknown columns in getParams() instead (
c6d26af5
)."
This reverts commit
b78933f1
.
parent
fa3caa00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
product/ERP5Form/Selection.py
product/ERP5Form/Selection.py
+6
-5
No files found.
product/ERP5Form/Selection.py
View file @
bda506f9
...
@@ -206,7 +206,11 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
...
@@ -206,7 +206,11 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
#LOG("Selection", 0, str((self.__dict__)))
#LOG("Selection", 0, str((self.__dict__)))
#LOG("Selection", 0, str(method))
#LOG("Selection", 0, str(method))
#LOG('Selection', 0, "self.invert_mode = %s" % repr(self.invert_mode))
#LOG('Selection', 0, "self.invert_mode = %s" % repr(self.invert_mode))
kw
=
self
.
getParams
()
if
not
params
:
kw
=
self
.
params
.
copy
()
else
:
kw
=
params
.
copy
()
kw
.
setdefault
(
"ignore_unknown_columns"
,
True
)
# Always remove '-C'-named parameter.
# Always remove '-C'-named parameter.
kw
.
pop
(
'-C'
,
None
)
kw
.
pop
(
'-C'
,
None
)
if
self
.
invert_mode
is
not
0
:
if
self
.
invert_mode
is
not
0
:
...
@@ -276,10 +280,7 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
...
@@ -276,10 +280,7 @@ class Selection(Acquisition.Implicit, Traversable, Persistent):
"""
"""
if
not
isinstance
(
self
.
params
,
dict
):
if
not
isinstance
(
self
.
params
,
dict
):
self
.
params
=
{}
self
.
params
=
{}
return
self
.
params
.
copy
()
params
=
self
.
params
.
copy
()
params
.
setdefault
(
"ignore_unknown_columns"
,
True
)
return
params
security
.
declarePublic
(
'getSortOrder'
)
security
.
declarePublic
(
'getSortOrder'
)
def
getSortOrder
(
self
):
def
getSortOrder
(
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