From d539eec66c70f217231de6d1920e16344b8d93df Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 6 Feb 2013 14:29:33 +0100 Subject: [PATCH] handle utf in make_master --- apps/catalogue/management/commands/make_master.py | 2 ++ lib/librarian | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/catalogue/management/commands/make_master.py b/apps/catalogue/management/commands/make_master.py index 4bca3834..08ccb7fa 100644 --- a/apps/catalogue/management/commands/make_master.py +++ b/apps/catalogue/management/commands/make_master.py @@ -2,6 +2,7 @@ from django.core.management.base import BaseCommand from django.core.management.color import color_style +from django.utils.encoding import smart_text from catalogue.management.prompt import confirm from catalogue.models import Book from optparse import make_option @@ -81,6 +82,7 @@ class Command(BaseCommand): holder['xml'] += u"%s\n" % t def dc(k, v): + v = smart_text(v) p(u'%s' % (k, v, k)) def t(tag, ct): diff --git a/lib/librarian b/lib/librarian index 11d86305..1ffcf32a 160000 --- a/lib/librarian +++ b/lib/librarian @@ -1 +1 @@ -Subproject commit 11d863057b43462248572daed7c8fc698d573b3d +Subproject commit 1ffcf32a8d795681f54bd125ca45e908da5ed3fb -- 2.20.1