diff options
author | Rob Crittenden <rcrit@ipa.greyoak.com> | 2008-07-22 15:14:23 -0400 |
---|---|---|
committer | Rob Crittenden <rcrit@ipa.greyoak.com> | 2008-07-29 11:32:02 -0400 |
commit | bae3a2101fc3cf79cc90bd0f807de226aeb46f5e (patch) | |
tree | 5aeec29b0804bbe117eb45c7e44e4e99b3ccf1d4 /ipa-server/ipa-gui/ipagui/subcontrollers | |
parent | cdba310f02a80d63452feb098b983dbbfbbc890a (diff) | |
download | freeipa-bae3a2101fc3cf79cc90bd0f807de226aeb46f5e.tar.gz freeipa-bae3a2101fc3cf79cc90bd0f807de226aeb46f5e.tar.xz freeipa-bae3a2101fc3cf79cc90bd0f807de226aeb46f5e.zip |
Fix encoding issue when manually loading templates for forms
We used to manually load the template files for the edit pages using
turbogears.meta.load_kid_template(). Unfortunately this went through
the one code path where encoding was completely ignored. It ended up
defaulting to sys.getdefaultencoding() which is 'ascii'. So even though
most of the templates are loaded as 'utf-8' the few that really mattered
weren't.
The fix is to call kid.load_template() ourselves and set the encoding of
the class we just loaded to either the setting in the app.cfg file or
to the normal default value of 'utf-8'.
454076
Diffstat (limited to 'ipa-server/ipa-gui/ipagui/subcontrollers')
0 files changed, 0 insertions, 0 deletions