def delete(self, project_id): print u'delete like in project:', project_id response = {} scientist_id = self.current_user_id try: yield ProjectBL.delete_like(project_id, scientist_id) except Exception, ex: logging.info('Exc on delete like: {}'.format(project_id)) logging.exception(ex) response = dict(message=ex.message)
def delete(self, project_id): print u"delete like in project:", project_id response = {} scientist_id = self.current_user_id try: yield ProjectBL.delete_like(project_id, scientist_id) except Exception, ex: logging.info("Exc on delete like: {}".format(project_id)) logging.exception(ex) response = dict(message=ex.message)