def handle_server_api(output, kwargs):
 name = kwargs.get('keyword')
 if (not name):
  name = kwargs.get('name')
 if name:
  server = config.get_config('servers', name)
  if server:
   server.set_dict(kwargs)
   old_name = name
  else:
   config.ConfigServer(name, kwargs)
   old_name = None
  Downloader.do.update_server(old_name, name)
 return name

def handle_server_api ( output , kwargs ) : name = kwargs . get ( 'keyword' ) if ( not name ) : name = kwargs . get ( 'name' ) if name : server = config . get_config ( 'servers' , name ) if server : server . set_dict ( kwargs ) old_name = name else : config . ConfigServer ( name , kwargs ) old_name = None Downloader . do . update_server ( old_name , name ) return name
special handler for api-call set_config [servers] .