def post(self): user_key = self.edit_user() if user_key: self.log_this_activity(user_key) user =user_key.get() self.user = user memcache.set_user(user.key.id(), user) self.redirect(self.uri_for('viewUser', user_id=self.user_info['user_id']))
def post(self): try: user_key = self.edit_user() if user_key: self.log_this_activity(user_key) self.send_success_response() user =user_key.get() self.user = user memcache.set_user(user.key.id(), user) else: raise RpcEditFailedError except RpcEditFailedError as e: self.send_failed_response(e)