djdb/search.py
def update_artist(self, artist, fields):
        """Update index metadata associated with an Artist instance.
        
        Args:
          artist: An Artist instance.
          fields: A dictionary of field/property names to update and new values.
          
        artist must have the indexer's transaction as its parent key.
        artist is saved when the indexer's save() method is called.
        """
        assert artist.parent_key() == self.transaction
        for field, value in fields.iteritems():
            self.update_key(artist.key(), field, unicode(getattr(artist, field)), unicode(value))
            setattr(artist, field, value)
        self._txn_objects_to_save.append(artist)
Update index metadata associated with an Artist instance.
        
        Args:
          artist: An Artist instance.
          fields: A dictionary of field/property names to update and new values.
          
        artist must have the indexer's transaction as its parent key.
        artist is saved when the indexer's save() method is called.
        
Update index metadata associated with an Artist instance.
Update index metadata associated with an Artist instance .
def update_artist(self, artist, fields):
        assert artist.parent_key() == self.transaction
        for field, value in fields.iteritems():
            self.update_key(artist.key(), field, unicode(getattr(artist, field)), unicode(value))
            setattr(artist, field, value)
        self._txn_objects_to_save.append(artist)
def update_artist ( self , artist , fields ) : assert artist . parent_key ( ) == self . transaction for field , value in fields . iteritems ( ) : self . update_key ( artist . key ( ) , field , unicode ( getattr ( artist , field ) ) , unicode ( value ) ) setattr ( artist , field , value ) self . _txn_objects_to_save . append ( artist )
Update index metadata associated with an Artist instance.
Update index metadata associated with an Artist instance .
"""Update index metadata associated with an Artist instance.
        
        Args:
          artist: An Artist instance.
          fields: A dictionary of field/property names to update and new values.
          
        artist must have the indexer's transaction as its parent key.
        artist is saved when the indexer's save() method is called.
        """
self
artist
An Artist instance.
An Artist instance .
fields
A dictionary of field/property names to update and new values.
A dictionary of field / property names to update and new values .