The doc string in exception.py of Keystone will be
returned with __doc__ method, but cannot realize the
internationalization.Change exception module to enable
i18n support.
Changes in the patch are:
1, useing class variable msg_fmt to replace class __doc__
2, modify wsgi.render_exception function using unicode
function to replace str function
3, modify/add UT test cases
Reviewed: https:/ /review. openstack. org/31074 github. com/openstack/ keystone/ commit/ f976bbe69700236 7ff00a0588a3181 fd42008e1c
Committed: http://
Submitter: Jenkins
Branch: master
commit f976bbe69700236 7ff00a0588a3181 fd42008e1c
Author: jiataotj <email address hidden>
Date: Fri May 31 00:18:28 2013 +0800
Implement exception module i18n support
The doc string in exception.py of Keystone will be alization. Change exception module to enable
returned with __doc__ method, but cannot realize the
internation
i18n support.
Changes in the patch are: exception function using unicode
1, useing class variable msg_fmt to replace class __doc__
2, modify wsgi.render_
function to replace str function
3, modify/add UT test cases
Fixes: bug # 1179425
Change-Id: I75c1229c905a26 25d2f6961d1a8dd 3958eac51a5