djdb/search.py
def update_track(self, track, fields):
        """Update index metadata associated with a Track instance.

        Args:
            track: A Track instance.
            fields: A dictionary of field/properties to update and new values.

        track must have the indexer's transaction as its parent key.
        track is saved when the indexer's save() method is called.
        """
        assert track.parent_key() == self.transaction
        for field, value in fields.iteritems():
            self.update_key(track.key(), field, unicode(getattr(track, field)), unicode(value))
            setattr(track, field, value)
        self._txn_objects_to_save.append(track)
Update index metadata associated with a Track instance.

        Args:
            track: A Track instance.
            fields: A dictionary of field/properties to update and new values.

        track must have the indexer's transaction as its parent key.
        track is saved when the indexer's save() method is called.
        
Update index metadata associated with a Track instance.
Update index metadata associated with a Track instance .
def update_track(self, track, fields):
        assert track.parent_key() == self.transaction
        for field, value in fields.iteritems():
            self.update_key(track.key(), field, unicode(getattr(track, field)), unicode(value))
            setattr(track, field, value)
        self._txn_objects_to_save.append(track)
def update_track ( self , track , fields ) : assert track . parent_key ( ) == self . transaction for field , value in fields . iteritems ( ) : self . update_key ( track . key ( ) , field , unicode ( getattr ( track , field ) ) , unicode ( value ) ) setattr ( track , field , value ) self . _txn_objects_to_save . append ( track )
Update index metadata associated with a Track instance.
Update index metadata associated with a Track instance .
"""Update index metadata associated with a Track instance.

        Args:
            track: A Track instance.
            fields: A dictionary of field/properties to update and new values.

        track must have the indexer's transaction as its parent key.
        track is saved when the indexer's save() method is called.
        """
self
track
A Track instance.
A Track instance .
fields
A dictionary of field/properties to update and new values.
A dictionary of field / properties to update and new values .