コード例 #1
0
    def _update(self, _conv_uuid, _assigned_uuid):
        _redis = self.application.redis
        _key = ConversationInfo.__tablename__ + ".uuid." + _conv_uuid

        if not _redis.exists(_key):
            logging.error("no such conversation: %s" % _conv_uuid)
            self.setErrorCode(API_ERR.NO_CONVERSATION)
            return

        _row = ConversationInfo(uuid=_conv_uuid, assigned_uuid=_assigned_uuid)
        _row.async_update()
        _row.update_redis_keys(_redis)

        _rdata = self.getReturnData()
        return
コード例 #2
0
    def _update(self, _conv_uuid, _assigned_uuid):
        _redis = self.application.redis
        _key = ConversationInfo.__tablename__ + ".uuid." + _conv_uuid

        if not _redis.exists(_key):
            logging.error("no such conversation: %s" % _conv_uuid)
            self.setErrorCode(API_ERR.NO_CONVERSATION)
            return

        _row = ConversationInfo(uuid=_conv_uuid, assigned_uuid=_assigned_uuid)
        _row.async_update(_redis)
        _row.update_redis_keys(_redis)

        _rdata = self.getReturnData()
        return
コード例 #3
0
 def _update_group(self):
     _row = ConversationInfo(uuid=self._conv.get("uuid"), group_uuid=self._group_uuid)
     _row.async_update()
     _row.update_redis_keys(self.application.redis)
     return
コード例 #4
0
 def _update_group(self):
     _row = ConversationInfo(uuid=self._conv.get("uuid"),
                             group_uuid=self._group_uuid)
     _row.async_update()
     _row.update_redis_keys(self.application.redis)
     return