def get(self): errors = check_args(a=(lambda x: x, "Value must be provided.")) if errors: return str(errors) return render_template(self.template_name, name="restful")
def dispatch_request(self): errors = check_args(a=(lambda x: x and int(x) > 10, "Should be greater than 10.")) if errors: return str(errors) return render_template(self.template_name, name="pluggable")