Show flattened current values in menu

This commit is contained in:
Griatch 2018-07-25 14:11:44 +02:00
parent 405293729f
commit e09576812f
2 changed files with 59 additions and 119 deletions

View file

@ -173,9 +173,11 @@ def flatten_prototype(prototype):
flattened (dict): The final, flattened prototype.
"""
protparents = {prot['prototype_key'].lower(): prot for prot in protlib.search_prototype()}
protlib.validate_prototype(prototype, None, protparents, is_prototype_base=True)
return _get_prototype(prototype, {}, protparents)
if prototype:
protparents = {prot['prototype_key'].lower(): prot for prot in protlib.search_prototype()}
protlib.validate_prototype(prototype, None, protparents, is_prototype_base=True)
return _get_prototype(prototype, {}, protparents)
return {}
# obj-related prototype functions