Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
cb73785f
Commit
cb73785f
authored
Oct 17, 2013
by
Vincent Pelletier
Committed by
Julien Muchembled
Oct 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZSQLCatalog: simplify Query.__repr__ in SearchTextParser
parent
12b5a000
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
product/ZSQLCatalog/SearchText/SearchTextParser.py
product/ZSQLCatalog/SearchText/SearchTextParser.py
+1
-4
No files found.
product/ZSQLCatalog/SearchText/SearchTextParser.py
View file @
cb73785f
...
...
@@ -116,10 +116,7 @@ if __name__ == '__main__':
return
(
self
.
column
,
self
.
value
,
self
.
comparison_operator
)
def
__repr__
(
self
):
value
=
self
.
value
if
len
(
value
)
==
1
:
value
=
value
[
0
]
return
'Query(%r, %r, %r)'
%
(
self
.
column
,
value
,
self
.
comparison_operator
)
return
'Query(%r, %r, %r)'
%
(
self
.
column
,
self
.
value
,
self
.
comparison_operator
)
def
__eq__
(
self
,
other
):
if
isinstance
(
other
,
Query
):
...
...
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