The CollectionProxy contains a limited copy of the data in the actual
collection, usable for fast visualisation in a QTableView
|
__init__(self,
admin,
collection_getter,
columns_getter,
max_number_of_rows=10,
edits=None,
flush_changes=True) |
source code
|
|
|
hasUnflushedRows(self)
The model has rows that have not been flushed to the database yet,
because the row is invalid |
source code
|
|
|
|
|
|
|
|
|
setCollectionGetter(self,
collection_getter) |
source code
|
|
|
handleRowUpdate(self,
row)
Handles the update of a row when this row might be out of date |
source code
|
|
|
handleEntityUpdate(self,
sender,
entity)
Handles the entity signal, indicating that the model is out of date |
source code
|
|
|
handleEntityDelete(self,
sender,
entity,
primary_keys)
Handles the entity signal, indicating that the model is out of date |
source code
|
|
|
handleEntityCreate(self,
entity,
primary_keys)
Handles the entity signal, indicating that the model is out of date |
source code
|
|
|
setRowCount(self,
rows)
Callback method to set the number of rows @param rows the new number
of rows |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
headerData(self,
section,
orientation,
role)
In case the columns have not been set yet, don't even try to get
information out of them |
source code
|
|
|
|
|
setData(self,
index,
value,
role=Qt.EditRole)
Value should be a function taking no arguments that returns the data
to be set |
source code
|
|
|
|
|
|
|
|
|
|
|
_get_row_data(self,
row,
role)
Get the data which is to be visualized at a certain row of the table,
if needed, post a refill request the cache to get the object and its
neighbours in the cache, meanwhile, return an empty object |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|