'Return true if two character have the same name
and/or characterID.'

def isSameName(self, other):

    if (not isinstance(other, self.__class__)):
        return 0
    if (self.data.has_key('name') and other.data.has_key('name') and (build_name(self.data, canonical=0) == build_name(other.data, canonical=0))):
        return 1
    if ((self.accessSystem == other.accessSystem) and (self.characterID is not None) and (self.characterID == other.characterID)):
        return 1
    return 0
