def _delete(self, request, obj_id):
    with self._conn as conn:
        try:
            c = conn.cursor()
            c.execute(request, obj_id)
            conn.commit()
            return True
        except Exception as ex:
            conn.rollback()
            DAOException(self, ex)
            return False
def _delete(self, request, obj_id):
    with self._conn as conn:
        try:
            c = conn.cursor()
            c.execute(request, obj_id)
            conn.commit()
            return True
        except Exception as ex:
            conn.rollback()
            DAOException(self, ex)
            return False