On 10/9/06, Nicky Ayoub <[EMAIL PROTECTED]
> wrote:
AMAZING ! I took the patch in #1115 and replaced the encoding with the formencode version. Works like a charm.
I had as sneaky suspicion that the code was in there somewhere...
Thanks for the tip!
In the standard paginate.py I added the following as the first line of Paginate.__init__():
input_values = variable_encode(input_values)
Don't forget to import...
Nicky
--
--
Nicky Ayoub
G-Mail Account
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
*** paginate.py.FCS 2006-09-21 08:50:33.000000000 -0700
--- paginate.py 2006-10-09 08:40:55.000000000 -0700
***************
*** 7,12 ****
--- 7,13 ----
import turbogears
from turbogears.decorator import weak_signature_decorator
from turbogears.view import variable_providers
+ from formencode.variabledecode import variable_encode
log = logging.getLogger("turbogears.paginate")
***************
*** 99,104 ****
--- 100,106 ----
"""class for variable provider"""
def __init__(self, current_page, pages, page_count, input_values,
limit, order, reversed):
+ input_values = variable_encode(input_values)
self.pages = pages
self.limit = limit
self.page_count = page_count

