def modcontrol_suspenduser_post_(request): form = request.web_input(userid="", username="", mode="", reason="", day="", month="", year="", datetype="", duration="", durationunit="") moderation.setusermode(request.userid, form) raise HTTPSeeOther(location="/modcontrol")
def POST(self): form = web.input(userid="", username="", mode="", reason="", day="", month="", year="", datetype="", duration="", durationunit="") moderation.setusermode(self.user_id, form) raise web.seeother("/modcontrol")