Public bug reported:
When a unicode string received from a python-suds call is saved in a django
database an exception is generated in this line of
/usr/lib/python2.7/dist-packages/django/db/backends/util.py:
logger.debug('(%.3f) %s; args=%s' % (duration, sql, params),
This appears to be a bug in the suds.sax.text.Text class used inside of params.
I reproduced the problem in a few lines of code:
#!/usr/bin/env python
from suds.sax.text import Text
v=Text(u'Bl\xe5')
print v
print [ v ]
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: python-suds 0.4.1-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-35.55-generic 3.2.34
Uname: Linux 3.2.0-35-generic i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu17.1
Architecture: i386
Date: Thu Jan 17 13:09:54 2013
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_US:en
TERM=screen
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: suds
UpgradeStatus: Upgraded to precise on 2012-05-08 (253 days ago)
** Affects: suds (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386 precise
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1100758
Title:
suds.sax.text.Text objects with unicode cannot be encoded when used in
lists
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/suds/+bug/1100758/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs