Roundup Tracker - Issues

Message5196

Author ber
Recipients antmail, ber, pcaulagi, shammash, techtonik
Date 2015-01-28.21:34:16
Message-id <13949334.tHRCP5sAgJ@kymo.gruen>
In-reply-to <1422446101.74.0.533869601926.issue2550811@psf.upfronthosting.co.za>
Am Mittwoch, 28. Januar 2015, 11:55:01 schrieben Sie:
>  It stores strings in DB as 
> UTF8, but doesn't do this for user input.

Hmmm.. I've checked the db file contents and it was in utf8.
Actually the str objects are in utf-8, that is why the encoding() function
needs to know that it is a str with utf-8 encoding.

I think an okay solution would be to
a) write a test case that fills in strings with utf-8 and tries to render 
all templates from "jinja2" template to check for errors.
b) use an custom filter "u()" and add it to almost all template calls
where the result is needed as text. Problem: Some calls with end up with 
str objects, other with roundup objects where jinja2 seems to call str() 
on them. So my testing u() function needs to accomodate for this.
History
Date User Action Args
2015-01-28 21:34:17bersetrecipients: + ber, techtonik, pcaulagi, shammash, antmail
2015-01-28 21:34:17berlinkissue2550811 messages
2015-01-28 21:34:16bercreate