Beispiel #1
0
 def update_person(self, person_id, person_data):
     self._check_profile_data(person_data, update=True)
     with self._database_engine.new_session() as session:
         person_dao = PersonDAO(session)
         person = person_dao.get(person_id)
         person = person_dao.update(person, person_data)
         return person.to_dict()
Beispiel #2
0
    def _update_person(self, member_id, member_data, person_type=None):
        logging.info("Update %s with data: %s" % (member_id, str(member_data)))
        with self._database_engine.new_session() as session:
            dao = PersonDAO(session)
            person = dao.get(member_id)

            person = dao.update(person, member_data)
            return person.to_dict()