Exemplo n.º 1
0
 def add_name(self, other_name):
     """
     Add another name to NaturalPerson.
     """
     if self.name:
         _name = symbol.strip_spaces(other_name)
         if _name not in self.name:
             self.name += "," + _name
     else:
         self.set_name(other_name)
Exemplo n.º 2
0
 def set_name(self, name):
     """
     Set the person name
     """
     self.name = symbol.strip_spaces(name)
     return self.name