Exemplo n.º 1
0
 def getAllGroups(self):
     dao = GroupDAO()
     result = dao.getAllGroups()
     if not result:
         return jsonify(Error="Not found"), 404
     mapped_result = []
     for r in result:
         mapped_result.append(mapGroupToDict(r))
     return jsonify(mapped_result)
Exemplo n.º 2
0
 def getAllgroups(self):
     dao = GroupDAO()
     result = dao.getAllGroups()
     return jsonify(Users=result)