Google Groups Home
Help | Sign in
Message from discussion Identity bug? Passing non-ASCII characters as kwargs to a handler with @identity.require(identity.not _anonymous()) gives internal server error
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Adi  
View profile
 More options Nov 15 2007, 5:19 am
From: Adi <fanet...@gmail.com>
Date: Thu, 15 Nov 2007 02:19:20 -0800 (PST)
Local: Thurs, Nov 15 2007 5:19 am
Subject: Re: Identity bug? Passing non-ASCII characters as kwargs to a handler with @identity.require(identity.not_anonymous ()) gives internal server error
Hi

Struggling with the same error, here's the workaround I found
that seems to be working for me. I'm using TG 1.0.2.2

IN turbogears\visit\api.py
  IN class VisitFilter(BaseFilter):
    IN def before_main(self):

adding at the end of before_main (line 165 for TG 1.0.0.2):

for k,v in cherrypy.request.params.iteritems():
    cherrypy.request.params[k]=v.encode('utf-8')

seems to do the job. However as I'm not using the latest TG version
and I'm not too confident with all this I'd rather let the
knowleadgeable team check whether this is ok or not! My 2 cents...


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google