示例#1
0
文件: content.py 项目: weykent/weasyl
    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, ))
示例#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, ))
示例#3
0
文件: content.py 项目: makyo/weasyl
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,))
示例#4
0
文件: content.py 项目: 0x15/weasyl
    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,))