Here's some code for issue #1.
##########
orderby=request.vars.orderby
if orderby:
if orderby==session.last_orderby:
if orderby[0]=='~':
orderby=orderby[1:]
else:
orderby='~' + orderby
session.last_orderby=orderby
##########
Where my adaptation is different from appadmin.py is that I don't have
a db name prepended to the field. Why? I have an idea, but I'd like an
explanation from someone in the know.
So instead of db.table.name for the orderby, I would have just
table.name.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---