def create_catalog_by_name(name, T='general'):
 result = util.callm('catalog/create', {}, POST=True, data={'name': name, 'type': T})
 result = result['response']
 return Catalog(result['id'], **dict(((k, result[k]) for k in ('name', 'type'))))

def create_catalog_by_name ( name , T = 'general' ) : result = util . callm ( 'catalog/create' , { } , POST = True , data = { 'name' : name , 'type' : T } ) result = result [ 'response' ] return Catalog ( result [ 'id' ] , ** dict ( ( ( k , result [ k ] ) for k in ( 'name' , 'type' ) ) ) )
creates a catalog object .