def POST(self): form = web.input(charid="") ownerid = character.remove(self.user_id, define.get_int(form.charid)) if self.user_id == ownerid: raise web.seeother("/control") # todo else: raise web.seeother("/characters?userid=%i" % (ownerid, ))
def remove_character_(request): form = request.web_input(charid="") ownerid = character.remove(request.userid, define.get_int(form.charid)) if request.userid == ownerid: raise HTTPSeeOther(location="/control") # todo else: raise HTTPSeeOther(location="/characters?userid=%i" % (ownerid, ))
def remove_character_(request): form = request.web_input(charid="") ownerid = character.remove(request.userid, define.get_int(form.charid)) if request.userid == ownerid: raise HTTPSeeOther(location="/control") # todo else: raise HTTPSeeOther(location="/characters?userid=%i" % (ownerid,))
def POST(self): form = web.input(charid="") ownerid = character.remove(self.user_id, define.get_int(form.charid)) if self.user_id == ownerid: raise web.seeother("/control") # todo else: raise web.seeother("/characters?userid=%i" % (ownerid,))