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.).""" ...@@ -135,10 +135,14 @@ etc.)."""
first name and last name first name and last name
""" """
if self.title == '': if self.title == '':
if not self.hasMiddleName(): name_list = []
return self.getFirstName('') + ' ' + self.getLastName('') if self.getFirstName():
else: name_list.append(self.getFirstName())
return self.getFirstName('') + ' ' + self.getMiddleName('') + ' ' + self.getLastName('') if self.getMiddleName():
name_list.append(self.getMiddleName())
if self.getLastName():
name_list.append(self.getLastName())
return ' '.join(name_list)
else: else:
return self.title return self.title
Title = getTitle 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