def handle_cat_api(output, kwargs):
 name = kwargs.get('keyword')
 if (not name):
  name = kwargs.get('name')
 if (not name):
  return None
 feed = config.get_config('categories', name)
 if feed:
  feed.set_dict(kwargs)
 else:
  config.ConfigCat(name, kwargs)
 return name

def handle_cat_api ( output , kwargs ) : name = kwargs . get ( 'keyword' ) if ( not name ) : name = kwargs . get ( 'name' ) if ( not name ) : return None feed = config . get_config ( 'categories' , name ) if feed : feed . set_dict ( kwargs ) else : config . ConfigCat ( name , kwargs ) return name
special handler for api-call set_config [categories] .