The upgrade path to go from 2.1 to 2.2 should be extremely easy, and I would expect things to just work for most everybody. Just upgrade TG in your dev installation, and run your nosetests to make sure nothing got broken that we didn't know about.
On Wed, Dec 19, 2012 at 5:04 PM, alonn <[email protected]> wrote: > since I'm not using tg 2.2 but 2.1.4 is there a simple recommended upgrade > path? > > > On Wednesday, December 19, 2012 12:16:42 PM UTC+2, Alessandro Molina wrote: > >> Ah, forgot to mention that it will work only with TurboGears2.2 as it >> requires @expose(inherit=True) support. >> Give a look at http://www.turbogears.org/**2.2/docs/main/TGControllers.** >> html?highlight=inherit#**subclassing-controllers<http://www.turbogears.org/2.2/docs/main/TGControllers.html?highlight=inherit#subclassing-controllers>for >> more details. >> >> >> On Wed, Dec 19, 2012 at 11:15 AM, Alessandro Molina < >> [email protected]> wrote: >> >>> You should be able to create a get_all method with @expose(inherit=True) >>> that simply calls the super(MyClass, self).get_all() inside that method you >>> can then tune the paginator parameters from tg.request.paginators. Simply >>> changing the paginate_items_per_page property inside that dictionary should >>> do what you are looking for. >>> >>> >>> On Tue, Dec 18, 2012 at 12:53 PM, alonn <[email protected]> wrote: >>> >>>> wandering if I have to specifically override the get_all to do that, or >>>> can I just pass a some parameter to control the number of items in every >>>> page >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "TurboGears" group. >>>> To view this discussion on the web visit https://groups.google.com/d/** >>>> msg/turbogears/-/H-I2ZrrOwt4J<https://groups.google.com/d/msg/turbogears/-/H-I2ZrrOwt4J> >>>> . >>>> To post to this group, send email to [email protected]. >>>> To unsubscribe from this group, send email to turbogears+...@** >>>> googlegroups.com. >>>> >>>> For more options, visit this group at http://groups.google.com/** >>>> group/turbogears?hl=en<http://groups.google.com/group/turbogears?hl=en> >>>> . >>>> >>> >>> >> -- > You received this message because you are subscribed to the Google Groups > "TurboGears" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/turbogears/-/iH5Vcrww1YMJ. > > 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. > -- Michael J. Pedersen My Online Resume: http://www.icelus.org/ -- Google+ http://plus.ly/pedersen Google Talk: [email protected] -- Twitter: pedersentg -- 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.

