def get_delete(self, x): docu_id = x.docu_id try: xss_db.delete('docu', where='id=$docu_id', vars=locals()) except Exception as error: return utils.json_response(197, str(error)) return utils.json_response(196)
def get_destory(self, x): userid = web.ctx.session.userid xss_db.delete("user", where="id=$userid", vars=locals()) web.ctx.session.kill() raise web.seeother("/today")