#2302: [PATCH] Improved TG2 paginate decorator
------------------------+---------------------------------------------------
Reporter: chrisz | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.1
Component: TurboGears | Version: 2.0rc1
Severity: normal | Keywords: paginate
------------------------+---------------------------------------------------
This patch improves the TG2 paginate decorator in several ways:
* it uses the TG2 Decoration object instead of decorating the controller
manually, because
* at least inside the decorator module, we should eat our own dogfood
* this makes it independent of the order of decorators, particularly
validate (this was a problem before, you could not write paginate after
validate)
* if items_per_page is changed via URL parameter, then this is now
inherited to the paginate links as well (before the setting was lost when
clicking on a paginate link)
* you can now set an upper limit to the items_per_page parameter when
passed via the URL (as it was possible in TG1)
--
Ticket URL: <http://trac.turbogears.org/ticket/2302>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---