예제 #1
0
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")
예제 #2
0
파일: settings.py 프로젝트: weykent/weasyl
    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")
예제 #3
0
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")
예제 #4
0
파일: settings.py 프로젝트: 0x15/weasyl
    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")