Roundup Tracker - Issues

Message5193

Author antmail
Recipients antmail, ber, pcaulagi, shammash
Date 2015-01-21.11:13:35
Message-id <1308649289.20150121141317@inbox.ru>
In-reply-to <1421825701.29.0.991478150176.issue2550811@psf.upfronthosting.co.za>
See also
http://issues.roundup-tracker.org/issue2550811

> Bernhard Reiter added the comment:

> The solution sketched in my roundup-r4962-issue811-ber1.patch
> will not be good enough. The problem is: functions like .plain() 
> will be called from within templating.py as well, so we get a mixture
> of str and unicode objects and some functions do not like unicode 
> objects.
> For example urllib.quote will not like them and barf.

> I've also tested solutions using functions like .plainu(), but this will get too
> ugly. So I believe the solution should be to use a custom jinja2 filter to do
> unicode conversion on each variable call. 

> Note that some objects will just be called from jinja2 and then use str() to
> get its string value. Example {{context.title}}

> ________________________________________________
> Roundup tracker <issues@roundup-tracker.org>
> <http://issues.roundup-tracker.org/issue2550811>
> ________________________________________________
History
Date User Action Args
2015-01-28 10:09:06techtonikunlinkissue2550811 messages
2015-01-21 11:13:36antmailsetrecipients: + antmail, ber, pcaulagi, shammash
2015-01-21 11:13:36antmaillinkissue2550811 messages
2015-01-21 11:13:35antmailcreate