Dear all,
I got some mysterious Unicode-and-Charsets-related problem in my
application for which I can't find the cause. Sorry to spam all 4 groups
with thi... I hope someone can bump me to the right direction:
I'm using tgext.crud and sprox with tw2 to generate my Administration
interface (most of the related code is in this file:
https://github.com/moschlar/SAUCE/blob/master/sauce/controllers/crc.py).
Now there was a small bug in the value getter from sprox that caused
SingleSelectFields option lists to be only str and not unicode objects,
but Alessandro fixed that already.
Now the next problem arises from a plain TextField (ignore all things
related to Bootstrap, I checked that using the standard tw2.forms
widgets doesn't change the issue :( ).
The field has the id "name" and is a Column(Unicode()) in SQLAlchemy.
Uploading the traceback to PylonsHQ doesn't work atm, so I made some
screenshots :-/:
Old design with tw1, works fine:
http://fox.moritz-schlarb.de:8080/files/old_design.png
The listing page, works fine:
http://fox.moritz-schlarb.de:8080/files/listing.png
If I click edit - traceback in text form:
http://fox.moritz-schlarb.de:8080/files/traceback.txt
Traceback as screenshot, highlighted the frame where the type of the
value diverts:
http://fox.moritz-schlarb.de:8080/files/Server%20Error2.png
I already tried some things: I changed the templating code in tw2.core
to explicitly use render_unicode in mako, you see that in the traceback,
but that changed nothing. As mentioned, I tried using the plain
tw2.forms widgets, but that changed nothing either.
If anyone has a clue, please, please tell me! ;)
I'd be glad to provide any additional information that could be helpful!
I'd even let you play around with the web traceback if that helps...
Hopeful cheers,
Moritz