|
From: Oleg B. <ph...@ph...> - 2012-01-29 19:29:15
|
Hello!
On Sun, Jan 29, 2012 at 11:06:31AM +0100, Petr Jake?? wrote:
> File "/usr/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/main.py",
> line 1120, in set
> self._connection._SO_update(self, args)
> File "/usr/lib/python2.5/site-packages/SQLObject-0.10.1-py2.5.egg/sqlobject/dbconnection.py",
> line 509, in _SO_update
> for dbName, value in values]),
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
> 33: ordinal not in range(128)
The error means there is at least one 8-bit str mixed with unicode.
If you are sure all values are str instances - what about dbNames?
_SO_update is called from set with dbNames from sqlmeta.columns:
args = [(self.sqlmeta.columns[name].dbName, value)
for name, value in toUpdate.items()]
self._connection._SO_update(self, args)
Make sure all dbNames are also str, not unicode.
Oleg.
--
Oleg Broytman http://phdru.name/ ph...@ph...
Programmers don't die, they just GOSUB without RETURN.
|