Exemplo n.º 1
0
 def getAllCompanies(self):
     dao = CompanyDAO()
     result = dao.getAllCompanies()
     result_list = []
     for row in result:
         result = self.build_company_dict(row)
         result_list.append(result)
     return jsonify(Companies=result_list)
Exemplo n.º 2
0
    def getAllComapnies(self):
        dao = CompanyDAO()
        cms = []
        items = dao.getAllCompanies()

        for i in items:
            result = self.build_company_dict(i)
            cms.append(result)

        return jsonify(Companies=cms)