Hello,
I am kind of confused as to what the solution to this problem is.
Should I apply all thost patches from the trac page or just the last
one? I tried to use just the last one which included my non-keyword
argument from my controller in the get_href url but the
next/prev/last/first urls are all still input_values-less. How can I
fix those as well?
Ie.
@expose(template='...'
@validate(validators=dict(id=vs.Int(not_empty=True)))
@paginate(var_name='images', max_pages=10, limit=2,
allow_limit_override=False)
@error_handler(index)
def editImages(self, id, tg_errors=None, **kwargs):
Going to http://localhost:8080/admin/brand/editImages?id=1 makes:
A page url:
http://localhost:8080/admin/brand/editImages?tg_paginate_limit=2&id=1&tg_paginate_no=2
But the next/last urls:
http://localhost:8080/admin/brand/editImages?tg_paginate_limit=2
I looked at the code and it looks like the input values should be okay
when they get to making the urls but it is not working. How can I get
the id in that next/last urls?
Thanks.
-Ian
On 10/13/06, Randall <[EMAIL PROTECTED]> wrote:
>
> This code takes input_values from cherrpy.request.params instead of kw
> and seems to do what's needed.
>
> input_values =
> variable_encode(cherrypy.request.params.copy())
> input_values.pop('self', None)
> for input_key in input_values.keys():
> if input_key.startswith('tg_paginate'):
> del input_values[input_key]
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---