diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-04-16 19:12:48 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-04-16 19:12:48 +0300 |
commit | a684db6e01a5d35c216895702dae59a41af806ad (patch) | |
tree | fd7d020245b3629f99ac3072120b0c8dbaf74d7a | |
parent | 5bdbbfd83a270fa4287d65e1482db90c88387f71 (diff) | |
download | jt-a684db6e01a5d35c216895702dae59a41af806ad.tar.gz |
Allow non-ASCII names for new-person
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | jtlib/plugins/new_person_plugin.py | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -4,6 +4,7 @@ NEWS for jt Version 0.14+git, not yet released ---------------------------------- +* Allow new-person to create pages for people with non-ASCII names. Version 0.14, released 2016-04-01 ---------------------------------- diff --git a/jtlib/plugins/new_person_plugin.py b/jtlib/plugins/new_person_plugin.py index a7cc76a..905252a 100644 --- a/jtlib/plugins/new_person_plugin.py +++ b/jtlib/plugins/new_person_plugin.py @@ -58,5 +58,6 @@ class NewPersonCommand(cliapp.Plugin): 'basename': basename, } rendered_template = self.app.render_template('new_person.j2', vars) + assert type(rendered_template) == unicode with open(pathname, 'w') as f: - f.write(rendered_template) + f.write(rendered_template.encode('utf8')) |