Ejemplo n.º 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")
Ejemplo n.º 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")
Ejemplo n.º 3
0
    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")
Ejemplo n.º 4
0
    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")
Ejemplo n.º 5
0
def removeavatar(userid, otherid):
    avatar.upload(otherid, None)
    note_about(userid, otherid, 'Avatar was removed.')
Ejemplo n.º 6
0
def removeavatar(userid, otherid):
    avatar.upload(otherid, None)
    note_about(userid, otherid, 'Avatar was removed.')