@functools.wraps
def process_request_body(fn):
 def wrapped(*args, **kwargs):
  if (cherrypy.request.process_request_body is not False):
   fn(*args, **kwargs)
 return wrapped

@ functools . wraps def process_request_body ( fn ) : def wrapped ( * args , ** kwargs ) : if ( cherrypy . request . process_request_body is not False ) : fn ( * args , ** kwargs ) return wrapped
a decorator to skip a processor function if process_request_body is false .