"Kevin Dangoor" <[EMAIL PROTECTED]> writes:

> On 3/24/06, Michele Cella <[EMAIL PROTECTED]> wrote:
>> Yes, I think the problem is the NestedVariablesFilter kicking in before
>> the decoding filter, maybe we need to use something with a lower
>> priority then before_main? or simply shift it's position on the list of
>> filter being applied in startup.py?
>
> The mystery here is that the code in cherrypy.filters.__init__ seems
> to clearly state that CP's filters (for input) are run *before*
> filters found in _cp_filter_list. My initial attempt at making this
> fail in a test case didn't work, which is why I asked for Jorge's
> code. I'll take a look at that on Monday.

After changing -- again -- the system to use UTF-8 by default (in
sitecustomize.py -- I could do that on a "per-project basis", but this is just
a test for a while) I am getting this traceback:

================================================================================
Traceback (most recent call last):
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/cherrypy/_cphttptools.py",
 line 97, in _run
    applyFilters('before_main')
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/cherrypy/filters/__init__.py",
 line 151, in applyFilters
    method()
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/cherrypy/filters/decodingfilter.py",
 line 31, in before_main
    self.decode(enc)
  File 
"/usr/lib/python2.4/site-packages/CherryPy-2.2.0rc1-py2.4.egg/cherrypy/filters/decodingfilter.py",
 line 50, in decode
    decodedParams[key] = value.decode(enc)
AttributeError: 'dict' object has no attribute 'decode'
================================================================================

It looks like the filter that was recently added is causing those problems.
This is with CP 1018:

================================================================================
[EMAIL PROTECTED] ~/desenvolvimento/python/TurboGears/trunk/thirdparty/cherrypy 
% LANG= svn info
Path: .
URL: http://svn.cherrypy.org/tags/cherrypy-2.2.0rc1
Repository Root: http://svn.cherrypy.org
Repository UUID: e1d34091-3ce9-0310-8e96-997e60db3bd5
Revision: 1018
Node Kind: directory
Schedule: normal
Last Changed Author: rdelon
Last Changed Rev: 1002
Last Changed Date: 2006-03-06 13:25:17 -0300 (Mon, 06 Mar 2006)
Properties Last Updated: 2006-03-10 17:11:23 -0300 (Fri, 10 Mar 2006)

[EMAIL PROTECTED] ~/desenvolvimento/python/TurboGears/trunk/thirdparty/cherrypy 
% 
================================================================================



-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to