def server_side(func):
 def inner(*args, **kwargs):
  if (args and hasattr(args[0], 'is_server') and (not voltron.debugger)):
   raise ServerSideOnlyException('This method can only be called on a server-side instance')
  return func(*args, **kwargs)
 return inner

def server_side ( func ) : def inner ( * args , ** kwargs ) : if ( args and hasattr ( args [ 0 ] , 'is_server' ) and ( not voltron . debugger ) ) : raise ServerSideOnlyException ( 'This method can only be called on a server-side instance' ) return func ( * args , ** kwargs ) return inner
decorator to designate an api method applicable only to server-side instances .