send-to-mycourse: encode string to utf-8 before outputting them

This commit is contained in:
Benjamin Dauvergne 2013-06-07 13:50:04 +02:00
parent a42229be62
commit 7002b5d944
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ class Command(BaseCommand):
qs.delete()
if options['list']:
for push in bb_pushs:
print ' -', push.id, 'document', os.path.basename(push.request.uploadfile.name), '(%s)' % \
push.request.id, 'de', push.request.user.display_name(), 'dans le cours', push.course_name,
print ' -', push.id, 'document', os.path.basename(push.request.uploadfile.name).encode('utf-8'), '(%s)' % \
push.request.id, 'de', push.request.user.display_name().encode('utf-8'), 'dans le cours', push.course_name.encode('utf-8'),
if push.visible_to_students:
print '(visible aux étudiants)',
print