fifo¶
Module containing the FIFO cache used in the collection proxy to store the data that is passed between the model and the gui thread
- class camelot.view.fifo.Fifo(max_entries)[source]¶
Fifo, is the actual cache containing a limited set of copies of row data so the data in Fifo, is always immediately accessible to the gui thread, with zero delay as you scroll down the table view, Fifo is filled and refilled with data queried from the database
the cache can be queried either by the row number or by object represented by the row data.
- add_data(row, entity, value)[source]¶
The entity might already be on another row, and this row might already contain an entity
Returns: a set with all the changed columns in the row
- delete_by_entity(entity)[source]¶
Remove everything in the cache related to an entity instance returns the row at which the data was stored if the data was in the cache, return None otherwise