def manage_banner_post_(request): form = request.web_input(image="") banner.upload(request.userid, form.image) raise HTTPSeeOther(location="/control")
def POST(self): form = web.input(image="") banner.upload(self.user_id, form.image) raise web.seeother("/control")
def removebanner(userid, otherid): banner.upload(otherid, None) note_about(userid, otherid, 'Banner was removed.')