def post(self,*k,**kk): if request.args.get('confirmed'): return render_template(self.template,**self.context) else: return response_request_confirmation( message="Are you sure? You got only one chance!", confirmation_url=url_for('.action_with_confirmation_create',confirmed=1,method=self.method) )
def post(self,*k,**kk): if request.args.get('confirmed'): return response_ok(message="Item deleted") else: return response_request_confirmation( message="Are you sure?", confirmation_url=url_for('.action_with_confirmation',confirmed=1) )
def post(self, *k, **kk): if request.args.get('confirmed'): return response_ok(message="Item deleted") else: return response_request_confirmation( message="Are you sure?", confirmation_url=url_for('.action_with_confirmation', confirmed=1))
def post(self, *k, **kk): if request.args.get('confirmed'): return render_template(self.template, **self.context) else: return response_request_confirmation( message="Are you sure? You got only one chance!", confirmation_url=url_for('.action_with_confirmation_create', confirmed=1, method=self.method))