예제 #1
0
def control_uploadavatar_(request):
    form = request.web_input(image="")

    manage = avatar.upload(request.userid, form.image)
    if manage:
        raise HTTPSeeOther(location="/manage/avatar")
    else:
        raise HTTPSeeOther(location="/control")
예제 #2
0
def control_uploadavatar_(request):
    form = request.web_input(image="")

    manage = avatar.upload(request.userid, form.image)
    if manage:
        raise HTTPSeeOther(location="/manage/avatar")
    else:
        raise HTTPSeeOther(location="/control")
예제 #3
0
파일: settings.py 프로젝트: weykent/weasyl
    def POST(self):
        form = web.input(image="")

        manage = avatar.upload(self.user_id, form.image)
        if manage:
            raise web.seeother("/manage/avatar")
        else:
            raise web.seeother("/control")
예제 #4
0
파일: settings.py 프로젝트: 0x15/weasyl
    def POST(self):
        form = web.input(image="")

        manage = avatar.upload(self.user_id, form.image)
        if manage:
            raise web.seeother("/manage/avatar")
        else:
            raise web.seeother("/control")
예제 #5
0
파일: moderation.py 프로젝트: Syfaro/weasyl
def removeavatar(userid, otherid):
    avatar.upload(otherid, None)
    note_about(userid, otherid, 'Avatar was removed.')
예제 #6
0
def removeavatar(userid, otherid):
    avatar.upload(otherid, None)
    note_about(userid, otherid, 'Avatar was removed.')