Commit 2545b10f by Clinton Blackburn

Merge pull request #144 from edx/migration-unicode-fix

Fixed Unicode bug
parents 08bba8e7 e22563df
......@@ -33,11 +33,11 @@ class CourseMigrationView(View):
root_logger.addHandler(log_handler)
# Log who ran this request
msg = 'User [%s] requested course migration for [%s]. '
msg = u'User [%s] requested course migration for [%s]. '
if commit:
msg += 'The changes will be committed to the database.'
msg += u'The changes will be committed to the database.'
else:
msg += 'The changes will NOT be committed to the database.'
msg += u'The changes will NOT be committed to the database.'
user = request.user
logger.info(msg, user.username, course_ids)
......@@ -51,8 +51,8 @@ class CourseMigrationView(View):
settings=os.environ['DJANGO_SETTINGS_MODULE'], stdout=out, stderr=err)
# Format the output for display
output = 'STDOUT\n{out}\n\nSTDERR\n{err}\n\nLOG\n{log}'.format(out=out.getvalue(), err=err.getvalue(),
log=log.getvalue())
output = u'STDOUT\n{out}\n\nSTDERR\n{err}\n\nLOG\n{log}'.format(out=out.getvalue(), err=err.getvalue(),
log=log.getvalue())
# Remove the log capture handler
root_logger.removeHandler(log_handler)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment