Commit 1ef9d9bd authored by Vincent Pelletier's avatar Vincent Pelletier

ZSQLCatalog: Only strip value when used

parent a40cbe4d
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment