Commit 36845ee6 authored by Jérome Perrin's avatar Jérome Perrin

hack: support overloading a related key by nothing.

use "related_key_name | " as key definition
(watch out for whitespace preserve in the field)
parent b22a4602
......@@ -2021,8 +2021,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