def get(self, key):
go = '/'
member = CheckAuth(self)
if member:
member = Member.get(member.id)
one = Member.get(key)
if one:
if one.num != member.num:
try:
blocked = pickle.loads(member.blocked.encode('utf-8'))
except:
blocked = []
if len(blocked) == 0:
blocked = []
if one.num not in blocked:
blocked.append(one.num)
member.blocked = pickle.dumps(blocked)
member.sync()
store.commit() #jon add
memcache.set('Member_' + str(member.num), member, 86400)
self.redirect(go)
评论列表
文章目录