Hello
How do I pass the desired sort order to a securedatacontroller ?
Following simplified snipped displays a nice grid with data , but
the order appears to be at the mercy of SQLobject.
I want to sort on alias column in desc order
class SecureDataController(DataController, identity.SecureResource):
require=identity.in_group("FORTKNOX")
# set up of the form
zztop_status_form=FastDataGrid(fields=[DataGrid.Column('alias','','ALIAS',options=dict(sortable=True)),...
20 more fields here]),
# show it
zztop =
SecureDataController(sql_class=Dms,list_widget=zztop_status_form,list_template='.templates.zztop')
zztop.require = identity.in_group("FORTKNOX")
I guess I need to feed in a presorted list .
How to do this ?
Thanks for any pointers
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---