Пример #1
0
 def put(self, project_id):
     print 'add like: ', project_id
     scientist_id = self.current_user_id
     if not scientist_id:
         return
     response = {}
     try:
         yield ProjectBL.add_like(project_id, scientist_id)
     except Exception, ex:
         logging.info('Exc on add like:')
         logging.exception(ex)
         response = dict(message=ex.message)
Пример #2
0
 def put(self, project_id):
     print "add like: ", project_id
     scientist_id = self.current_user_id
     if not scientist_id:
         return
     response = {}
     try:
         yield ProjectBL.add_like(project_id, scientist_id)
     except Exception, ex:
         logging.info("Exc on add like:")
         logging.exception(ex)
         response = dict(message=ex.message)