djdb/search.py
def create_artists(all_artist_names):
    """Adds a set of artists to the datastore inside of a transaction.

    Args:
      all_artist_names: A sequence of unicode strings, which are the
        names of the artists to be added.
    """
    idx = Indexer()
    artist_objs = []
    for name in all_artist_names:
        art = models.Artist.create(name=name,
                                   parent=idx.transaction)
        idx.add_artist(art)
    AutoRetry(idx).save()
Adds a set of artists to the datastore inside of a transaction.

    Args:
      all_artist_names: A sequence of unicode strings, which are the
        names of the artists to be added.
    
Adds a set of artists to the datastore inside of a transaction.
Adds a set of artists to the datastore inside of a transaction .
def create_artists(all_artist_names):
    idx = Indexer()
    artist_objs = []
    for name in all_artist_names:
        art = models.Artist.create(name=name,
                                   parent=idx.transaction)
        idx.add_artist(art)
    AutoRetry(idx).save()
def create_artists ( all_artist_names ) : idx = Indexer ( ) artist_objs = [ ] for name in all_artist_names : art = models . Artist . create ( name = name , parent = idx . transaction ) idx . add_artist ( art ) AutoRetry ( idx ) . save ( )
Adds a set of artists to the datastore inside of a transaction.
Adds a set of artists to the datastore inside of a transaction .
"""Adds a set of artists to the datastore inside of a transaction.

    Args:
      all_artist_names: A sequence of unicode strings, which are the
        names of the artists to be added.
    """
all_artist_names
A sequence of unicode strings, which are the
names of the artists to be added.
A sequence of unicode strings which are the names of the artists to be added .