def _api_set_config(name, output, kwargs):
 if (kwargs.get('section') == 'servers'):
  kwargs['keyword'] = handle_server_api(output, kwargs)
 elif (kwargs.get('section') == 'rss'):
  kwargs['keyword'] = handle_rss_api(output, kwargs)
 elif (kwargs.get('section') == 'categories'):
  kwargs['keyword'] = handle_cat_api(output, kwargs)
 else:
  res = config.set_config(kwargs)
  if (not res):
   return report(output, _MSG_NO_SUCH_CONFIG)
 config.save_config()
 (res, data) = config.get_dconfig(kwargs.get('section'), kwargs.get('keyword'))
 return report(output, keyword='config', data=data)

def _api_set_config ( name , output , kwargs ) : if ( kwargs . get ( 'section' ) == 'servers' ) : kwargs [ 'keyword' ] = handle_server_api ( output , kwargs ) elif ( kwargs . get ( 'section' ) == 'rss' ) : kwargs [ 'keyword' ] = handle_rss_api ( output , kwargs ) elif ( kwargs . get ( 'section' ) == 'categories' ) : kwargs [ 'keyword' ] = handle_cat_api ( output , kwargs ) else : res = config . set_config ( kwargs ) if ( not res ) : return report ( output , _MSG_NO_SUCH_CONFIG ) config . save_config ( ) ( res , data ) = config . get_dconfig ( kwargs . get ( 'section' ) , kwargs . get ( 'keyword' ) ) return report ( output , keyword = 'config' , data = data )
api: accepts output .