'Return true if two persons have the same name and imdbIndex
and/or personID.'

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=1) == build_name(other.data, canonical=1))):
        return 1
    if ((self.accessSystem == other.accessSystem) and self.personID and (self.personID == other.personID)):
        return 1
    return 0
