Example #1
0
    def getPersonByID(self, aid):
        dao = PersonDAO()
        persons = []
        items = dao.getPersonByID(aid)

        for i in items:
            result = self.build_Person_dict(i)
            persons.append(result)

        return jsonify(Person=persons)
Example #2
0
 def getPersonById(self, perid):
     dao = PersonDAO()
     person = dao.getPersonByID(perid)
     return jsonify(person), 200