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
1ef9d9bd
Commit
1ef9d9bd
authored
Jul 09, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZSQLCatalog: Only strip value when used
parent
a40cbe4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
product/ZSQLCatalog/SQLCatalog.py
product/ZSQLCatalog/SQLCatalog.py
+2
-3
No files found.
product/ZSQLCatalog/SQLCatalog.py
View file @
1ef9d9bd
...
@@ -2041,9 +2041,8 @@ class Catalog(Folder,
...
@@ -2041,9 +2041,8 @@ class Catalog(Folder,
if
len
(
split_entire_definition
)
!=
2
:
if
len
(
split_entire_definition
)
!=
2
:
LOG
(
'SQLCatalog'
,
WARNING
,
'Malformed related key definition: %r. Ignored.'
%
(
entire_definition
,
))
LOG
(
'SQLCatalog'
,
WARNING
,
'Malformed related key definition: %r. Ignored.'
%
(
entire_definition
,
))
continue
continue
name
,
definition
=
[
x
.
strip
()
for
x
in
split_entire_definition
]
if
split_entire_definition
[
0
].
strip
()
==
key
:
if
name
==
key
:
result
=
split_entire_definition
[
1
].
strip
()
result
=
definition
break
break
if
result
is
not
None
:
if
result
is
not
None
:
related_key_definition_cache
[
key
]
=
result
related_key_definition_cache
[
key
]
=
result
...
...
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