예제 #1
0
 def get(self, groupname):
     result = common.getAllChilderenForGroup(groupname)
     if result:
         data = {"children": [group["children"] for group in result]}
     else:
         data = {"children": ""}
     return data
예제 #2
0
파일: api.py 프로젝트: 40a/jetfire
 def get(self, groupname):
     result = common.getAllChilderenForGroup(groupname)
     if result:
         data = {"children": [group["children"] for group in result]}
     else:
         data = {"children": ""}
     return data
예제 #3
0
파일: get_group.py 프로젝트: 40a/jetfire
 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
예제 #4
0
 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