Esempio n. 1
0
    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, ))
Esempio n. 2
0
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, ))
Esempio n. 3
0
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,))
Esempio n. 4
0
    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,))