Commit 5cec9b21 authored by Jérome Perrin's avatar Jérome Perrin

support overloading a related key by nothing.

use "related_key_name | " as key definition
(watch out for whitespace preserve in the field)
parent 4280c2fd
......@@ -2041,8 +2041,10 @@ class Catalog(Folder,
LOG('SQLCatalog', WARNING, 'Malformed related key definition: %r. Ignored.' % (entire_definition, ))
continue
if split_entire_definition[0].strip() == key:
result = split_entire_definition[1].strip()
break
key_definition = split_entire_definition[1].strip()
if key_definition:
result = key_definition
break
else:
result = None
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