def central_server_only(handler):
 def central_server_only_wrapper_fn(*args, **kwargs):
  if (not settings.CENTRAL_SERVER):
   raise Http404(_('This path is only available on the central server.'))
  return handler(*args, **kwargs)
 return central_server_only_wrapper_fn

def central_server_only ( handler ) : def central_server_only_wrapper_fn ( * args , ** kwargs ) : if ( not settings . CENTRAL_SERVER ) : raise Http404 ( _ ( 'This path is only available on the central server.' ) ) return handler ( * args , ** kwargs ) return central_server_only_wrapper_fn
assert-like decorator that marks a function for use only on the central server .