Show flattened current values in menu
This commit is contained in:
parent
405293729f
commit
e09576812f
2 changed files with 59 additions and 119 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue