Package: python-pylons
Version: 0.9.5-5
Severity: normal
Tags: patch

When using the @validate decorator with non-ASCII unicode strings, Pylons throws an exception:

exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 68: ordinal not in range(128) the form was passed in as an encoded string, but some data or error messages were unicode strings; the form should be passed in as a unicode string

Pylons 0.9.6 will fix this issue; See the patch in the upstream subversion repository:
http://pylonshq.com/project/pylonshq/changeset/1985

In the meantime, I have created (and tested) a patch that applies cleanly against Debian's pylons 0.9.5-5 source package. The patch is attached to this bug report.

Cheers,
- Dwayne

-- System Information:
Debian Release: lenny/sid
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.16.29-xenU
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_CA.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-pylons depends on:
ii  python                        2.4.4-2    An interactive high-level object-o
ii  python-beaker                 0.7.2-1    Simple WSGI middleware that uses t
ii  python-decorator              2.0.1-4    simplify usage of python decorator
ii  python-formencode             0.7.1-1    validation and form generation pyt
ii  python-mako                   0.1.6-1    hyperfast and lightweight templati
ii python-myghty 1.1-3 Python based templating framework ii python-nose 0.9.2-3 test discovery and running for Pyt
ii  python-paste                  1.3-2      Tools for using a Web Server Gatew
ii python-pastedeploy 1.3-1 Load, configure, and compose WSGI ii python-pastescript 1.3.4-1 serving web applications, creating
ii  python-routes                 1.6.3-1    Routing Recognition and Generation
ii  python-simplejson             1.7.1-2    Simple, fast, extensible JSON enco
ii  python-support                0.6.4      automated rebuilding support for p
ii  python-webhelpers             0.3-2      Library of helper functions to mak

Versions of packages python-pylons recommends:
ii python-sqlalchemy 0.3.7-1 SQL toolkit and Object Relational ii python-sqlobject 0.8.2-1 python module for SQLObject

-- no debconf information


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to