Commit e0bf4c03 authored by Alexandre Boeglin's avatar Alexandre Boeglin

fix uninitialized variable error.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8077 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7b5ec7f5
...@@ -96,8 +96,8 @@ class Message(Persistent): ...@@ -96,8 +96,8 @@ class Message(Persistent):
translation_service = getGlobalTranslationService() translation_service = getGlobalTranslationService()
if self.domain is None or request is None or translation_service is None : if self.domain is None or request is None or translation_service is None :
# Map the translated string with given parameters # Map the translated string with given parameters
message = self.message
if type(self.mapping) is type({}): if type(self.mapping) is type({}):
message = self.message
if isinstance(message, unicode) : if isinstance(message, unicode) :
message = message.encode('utf8') message = message.encode('utf8')
message = Template(message).substitute(self.mapping) message = Template(message).substitute(self.mapping)
......
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