(self, aliases)
Update the aliases on an Actor.

        :param aliases: The aliases we are setting.
        :type aliases: list
Update the aliases on an Actor.
Update the aliases on an Actor .
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)
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 )