def control_editcommishclass_(request): form = request.web_input(classid="") commishclass = orm.CommishClass() commishclass.title = form.title.strip() commishclass.classid = define.get_int(form.classid) commishinfo.edit_class(request.userid, commishclass) raise HTTPSeeOther(location="/control/editcommissionprices")
def POST(self): form = web.input(classid="") commishclass = orm.CommishClass() commishclass.title = form.title.strip() commishclass.classid = define.get_int(form.classid) commishinfo.edit_class(self.user_id, commishclass) raise web.seeother("/control/editcommissionprices")
def control_editcommishclass_(request): form = request.web_input(classid="", title="") commishclass = orm.CommishClass() commishclass.title = form.title.strip() commishclass.classid = define.get_int(form.classid) commishinfo.edit_class(request.userid, commishclass) raise HTTPSeeOther(location="/control/editcommissionsettings")