예제 #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
파일: content.py 프로젝트: taedixon/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, ))
예제 #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,))