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