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-controllersfor
>  more details.
>
>
> On Wed, Dec 19, 2012 at 11:15 AM, Alessandro Molina 
> <[email protected]<javascript:>
> > 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] 
>> <javascript:>>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.
>>> To post to this group, send email to [email protected]<javascript:>
>>> .
>>> To unsubscribe from this group, send email to 
>>> [email protected] <javascript:>.
>>> For more options, visit this group at 
>>> 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.

Reply via email to