djdb/search.py
def add_album(self, album):
        """Prepare to index metdata associated with an Album instance.

        album must have the indexer's transaction as its parent key.
        album is saved when the indexer's save() method is called.
        """
        assert album.parent_key() == self.transaction
        self.add_key(album.key(), "title", strip_tags(album.title))
        self.add_key(album.key(), "artist", album.artist_name)
        if album.label is not None:
            self.add_key(album.key(), "label", album.label)
        if album.year is not None:
            self.add_key(album.key(), "year", unicode(album.year))
        self._txn_objects_to_save.append(album)
Prepare to index metdata associated with an Album instance.

        album must have the indexer's transaction as its parent key.
        album is saved when the indexer's save() method is called.
        
Prepare to index metdata associated with an Album instance.
album must have the indexer's transaction as its parent key.
album is saved when the indexer's save() method is called.
Prepare to index metdata associated with an Album instance . album must have the indexer ' s transaction as its parent key . album is saved when the indexer ' s save () method is called .
def add_album(self, album):
        assert album.parent_key() == self.transaction
        self.add_key(album.key(), "title", strip_tags(album.title))
        self.add_key(album.key(), "artist", album.artist_name)
        if album.label is not None:
            self.add_key(album.key(), "label", album.label)
        if album.year is not None:
            self.add_key(album.key(), "year", unicode(album.year))
        self._txn_objects_to_save.append(album)
def add_album ( self , album ) : assert album . parent_key ( ) == self . transaction self . add_key ( album . key ( ) , "title" , strip_tags ( album . title ) ) self . add_key ( album . key ( ) , "artist" , album . artist_name ) if album . label is not None : self . add_key ( album . key ( ) , "label" , album . label ) if album . year is not None : self . add_key ( album . key ( ) , "year" , unicode ( album . year ) ) self . _txn_objects_to_save . append ( album )
Prepare to index metdata associated with an Album instance.
Prepare to index metdata associated with an Album instance .
"""Prepare to index metdata associated with an Album instance.

        album must have the indexer's transaction as its parent key.
        album is saved when the indexer's save() method is called.
        """
self
album