def get(self, groupname): result = common.getAllChilderenForGroup(groupname) if result: data = {"children": [group["children"] for group in result]} else: data = {"children": ""} return data
def get_groupchildren(self,groupname): result = common.getAllChilderenForGroup(groupname) for item in result: childs = item children = [] if not childs: children = [] else: for item in childs["children"]: children.append(item) return children
def get_groupchildren(self, groupname): result = common.getAllChilderenForGroup(groupname) for item in result: childs = item children = [] if not childs: children = [] else: for item in childs["children"]: children.append(item) return children