def _set_del_code(f):
 @functools.wraps(f)
 def wrapped(*args, **kwargs):
  f(*args, **kwargs)
  pecan.response.status = 204
  pecan.override_template(None)
 return wrapped

def _set_del_code ( f ) : @ functools . wraps ( f ) def wrapped ( * args , ** kwargs ) : f ( * args , ** kwargs ) pecan . response . status = 204 pecan . override_template ( None ) return wrapped
handle logic of disabling json templating engine and setting http code .