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,7 +2041,9 @@ 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()
key_definition = split_entire_definition[1].strip()
if key_definition:
result = key_definition
break
else:
result = None
......
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