Hi,
I hope some light can be shed on the following. If I under stand
correctly to get PaginateDataGrid to sort correctly (as my datagrids
are not sorting but doing random changes) I should pass a SQLAlchemy
query to the DataGrid and not a list of Object. In other words I
should not .all() or .first() any query.
Unfortunately I am in the situation where I do a lot of on the fly
calculation of before I display data to a user, and thus I first
retrieve the data from the database do the calculation and then send
either an object or dictionary to the respective datagrid.
My typical Class will have 2-5 property functions several method
functions.
Representation:
SQL table definition
Class SomeClass(objecy):
def __init__(....)
@property()
def SomeProperty(self):
Get Data from DataBase for self
Do some calculation
return results
@method
def SomeClassMethod(cls,argument):
Do something
return something
Is their a way I can still sort these grids by column headings?
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.