Example #1
0
def control_removecommishprice_(request):
    priceid = define.get_int(request.params.get('priceid', ""))

    if not priceid:
        raise WeasylError("priceidInvalid")

    commishinfo.remove_price(request.userid, priceid)
    raise HTTPSeeOther(location="/control/editcommissionsettings")
Example #2
0
def control_removecommishprice_(request):
    form = request.web_input(classid="")

    commishinfo.remove_price(request.userid, form.priceid)
    raise HTTPSeeOther(location="/control/editcommissionprices")
Example #3
0
    def POST(self):
        form = web.input(classid="")

        commishinfo.remove_price(self.user_id, form.priceid)
        raise web.seeother("/control/editcommissionprices")
Example #4
0
def control_removecommishprice_(request):
    form = request.web_input(priceid="")

    commishinfo.remove_price(request.userid, form.priceid)
    raise HTTPSeeOther(location="/control/editcommissionsettings")
Example #5
0
    def POST(self):
        form = web.input(classid="")

        commishinfo.remove_price(self.user_id, form.priceid)
        raise web.seeother("/control/editcommissionprices")