On 12 Apr 2007, at 18:08, Jorge Godoy wrote:
>
> "Chris Miles" <[EMAIL PROTECTED]> writes:
>
>> I am using @paginate happily (with SQLAlchemy, from 1.0-branch)
>> except
>> for one annoying problem. I cannot see a way to specify the
>> default_order as reversed.
>
> Prepend a minus signal: 'order' (ascending), '-order' (descending).
That's what I tried.
I had:
@paginate('media', default_order='tsuploaded')
and changed to:
@paginate('media', default_order='-tsuploaded')
which results in an exception:
"StandardError: The order column (-tsuploaded) doesn't exist"
Where am I supposed to add the minus sign?
Cheers,
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---