()
return ret
In order to not break abstraction barrier, we walk through all the COUCH_DATABASES
    and assemble the unique set of databases (based upon the URL) to prime the views and all the design docs in it.
In order to not break abstraction barrier, we walk through all the COUCH_DATABASES
    and assemble the unique set of databases (based upon the URL) to prime the views and all the design docs in it.
In order to not break abstraction barrier we walk through all the COUCH_DATABASES and assemble the unique set of databases ( based upon the URL ) to prime the views and all the design docs in it .
def get_unique_dbs():
    """
    In order to not break abstraction barrier, we walk through all the COUCH_DATABASES
    and assemble the unique set of databases (based upon the URL) to prime the views and all the design docs in it.
    """
    ret = []
    seen_dbs = []
    db_apps = settings.COUCHDB_DATABASES
    for t in db_apps:
        app_name = t[0]
        db_name = t[0].split('/')[-1]
        if db_name in seen_dbs:
            continue
        else:
            seen_dbs.append(db_name)
            ret.append(app_name)
    return ret
def get_unique_dbs ( ) : ret = [ ] seen_dbs = [ ] db_apps = settings . COUCHDB_DATABASES for t in db_apps : app_name = t [ 0 ] db_name = t [ 0 ] . split ( '/' ) [ - 1 ] if db_name in seen_dbs : continue else : seen_dbs . append ( db_name ) ret . append ( app_name ) return ret