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.

The PaginateDecorator doc mentions (in the comments) prepending the
column name with a minus sign, but this doesn't work at all (as
confirmed by another comment on that page). -- 
http://docs.turbogears.org/1.0/PaginateDecorator

Glancing at the source for paginate, I see no obvious way to specify
reversed as default.

I would simply suggest adding a decorator variable default_reversed,
e.g.:

  @paginate('something', default_order='timestamp',
default_reversed=True)

If there is no current way to do this, and the suggestion sounds
reasonable, I can throw a patch into trac.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to