- if "definition" in edit_content and edit_content["definition"]:
- for role_def, value in edit_content["definition"].items():
- if role_def == ".":
- final_content["root"] = value
- else:
- final_content[role_def.replace(".", ":")] = value
-
- if "root" not in final_content:
- final_content["root"] = False
+ for role_def, value in edit_content.items():
+ final_content[role_def.replace(".", ":")] = value
+
+ if ":" not in final_content.keys():
+ final_content[":"] = False