def POST(self): form = web.input(submitid="", charid="", journalid="", reportid="", violation="", content="") report.create(self.user_id, form) if form.reportid: raise web.seeother("/modcontrol/report?reportid=%s" % (form.reportid,)) elif define.get_int(form.submitid): raise web.seeother("/submission/%i" % (define.get_int(form.submitid),)) elif define.get_int(form.charid): raise web.seeother("/character/%i" % (define.get_int(form.charid),)) else: raise web.seeother("/journal/%i" % (define.get_int(form.journalid),))
def submit_report_(request): form = request.web_input(submitid="", charid="", journalid="", reportid="", violation="", content="") report.create(request.userid, form) if form.reportid: raise HTTPSeeOther(location="/modcontrol/report?reportid=%s" % (form.reportid,)) elif define.get_int(form.submitid): raise HTTPSeeOther(location="/submission/%i" % (define.get_int(form.submitid),)) elif define.get_int(form.charid): raise HTTPSeeOther(location="/character/%i" % (define.get_int(form.charid),)) else: raise HTTPSeeOther(location="/journal/%i" % (define.get_int(form.journalid),))
def POST(self): form = web.input(submitid="", charid="", journalid="", reportid="", violation="", content="") report.create(self.user_id, form) if form.reportid: raise web.seeother("/modcontrol/report?reportid=%s" % (form.reportid, )) elif define.get_int(form.submitid): raise web.seeother("/submission/%i" % (define.get_int(form.submitid), )) elif define.get_int(form.charid): raise web.seeother("/character/%i" % (define.get_int(form.charid), )) else: raise web.seeother("/journal/%i" % (define.get_int(form.journalid), ))