sregistry/main/swift/query.py
def search_all(self):
    '''a "show all" search that doesn't require a query'''

    results = set()

    # Here we get names of collections, and then look up containers
    for container in self.conn.get_account()[1]:

        # The result here is just the name
        for result in self.conn.get_container(container['name'])[1]:
            results.add('%s/%s' %(container['name'], result['name']))

    if len(results) == 0:
        bot.info("No container collections found.")
        sys.exit(1)

    bot.info("Collections")
    bot.table([[x] for x in list(results)])
    return list(results)
def search_all(self):
    '''a "show all" search that doesn't require a query'''

    results = set()

    # Here we get names of collections, and then look up containers
    for container in self.conn.get_account()[1]:

        # The result here is just the name
        for result in self.conn.get_container(container['name'])[1]:
            results.add('%s/%s' %(container['name'], result['name']))

    if len(results) == 0:
        bot.info("No container collections found.")
        sys.exit(1)

    bot.info("Collections")
    bot.table([[x] for x in list(results)])
    return list(results)
a "show all" search that doesn't require a query