def collection_search(self, query):
    '''collection search will list all containers for a specific
    collection. We assume query is the name of a collection'''

    query = query.lower().strip('/')
    url = '%s/collection/%s' %(self.base, query)

    result = self._get(url)
    if len(result) == 0:
        bot.info("No collections found.")
        sys.exit(1)

    bot.custom(prefix="COLLECTION", message=query)

    rows = []
    for container in result['containers']:
        rows.append([ container['uri'],
                      container['detail'] ])

    bot.table(rows)
    return rows
def collection_search(self, query):
    

    query = query.lower().strip('/')
    url = '%s/collection/%s' %(self.base, query)

    result = self._get(url)
    if len(result) == 0:
        bot.info("No collections found.")
        sys.exit(1)

    bot.custom(prefix="COLLECTION", message=query)

    rows = []
    for container in result['containers']:
        rows.append([ container['uri'],
                      container['detail'] ])

    bot.table(rows)
    return rows
def collection_search ( self , query ) : query = query . lower ( ) . strip ( '/' ) url = '%s/collection/%s' % ( self . base , query ) result = self . _get ( url ) if len ( result ) == 0 : bot . info ( "No collections found." ) sys . exit ( 1 ) bot . custom ( prefix = "COLLECTION" , message = query ) rows = [ ] for container in result [ 'containers' ] : rows . append ( [ container [ 'uri' ] , container [ 'detail' ] ] ) bot . table ( rows ) return rows
collection search will list all containers for a specific
    collection. We assume query is the name of a collection
collection search will list all containers for a specific collection . We assume query is the name of a collection