Commit 491f24be authored by Yoshinori Okuji's avatar Yoshinori Okuji

Do not insert space unnecessarily.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1437 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c5394d96
......@@ -135,10 +135,14 @@ etc.)."""
first name and last name
"""
if self.title == '':
if not self.hasMiddleName():
return self.getFirstName('') + ' ' + self.getLastName('')
else:
return self.getFirstName('') + ' ' + self.getMiddleName('') + ' ' + self.getLastName('')
name_list = []
if self.getFirstName():
name_list.append(self.getFirstName())
if self.getMiddleName():
name_list.append(self.getMiddleName())
if self.getLastName():
name_list.append(self.getLastName())
return ' '.join(name_list)
else:
return self.title
Title = getTitle
......
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