parameters: (self, aliases)
docstring: Update the aliases on an Actor.
  
          :param aliases: The aliases we are setting.
          :type aliases: list
docstring_summary: Update the aliases on an Actor.
docstring_tokens: Update the aliases on an Actor .
function: def update_aliases(self, aliases):
          """
          Update the aliases on an Actor.
  
          :param aliases: The aliases we are setting.
          :type aliases: list
          """
  
          if isinstance(aliases, basestring):
              aliases = aliases.split(',')
          aliases = [a.strip() for a in aliases if a != '']
          existing_aliases = None
          if len(aliases) < len(self.aliases):
              self.aliases = aliases
          else:
              existing_aliases = self.aliases
          if existing_aliases is not None:
              for a in aliases:
                  if a not in existing_aliases:
                      existing_aliases.append(a)
function_tokens: def update_aliases ( self , aliases ) : if isinstance ( aliases , basestring ) : aliases = aliases . split ( ',' ) aliases = [ a . strip ( ) for a in aliases if a != '' ] existing_aliases = None if len ( aliases ) < len ( self . aliases ) : self . aliases = aliases else : existing_aliases = self . aliases if existing_aliases is not None : for a in aliases : if a not in existing_aliases : existing_aliases . append ( a )