From 1ef9d9bd3d3c4fefc13bbb2235d2b291845f7ef6 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Tue, 9 Jul 2013 17:36:12 +0200 Subject: [PATCH] ZSQLCatalog: Only strip value when used --- product/ZSQLCatalog/SQLCatalog.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/product/ZSQLCatalog/SQLCatalog.py b/product/ZSQLCatalog/SQLCatalog.py index 6245f4c967..24ea9ab92f 100644 --- a/product/ZSQLCatalog/SQLCatalog.py +++ b/product/ZSQLCatalog/SQLCatalog.py @@ -2041,9 +2041,8 @@ class Catalog(Folder, if len(split_entire_definition) != 2: LOG('SQLCatalog', WARNING, 'Malformed related key definition: %r. Ignored.' % (entire_definition, )) continue - name, definition = [x.strip() for x in split_entire_definition] - if name == key: - result = definition + if split_entire_definition[0].strip() == key: + result = split_entire_definition[1].strip() break if result is not None: related_key_definition_cache[key] = result -- 2.30.9