'Return true if two company have the same name
and/or companyID.'

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_company_name(self.data) == build_company_name(other.data))):
        return 1
    if ((self.accessSystem == other.accessSystem) and (self.companyID is not None) and (self.companyID == other.companyID)):
        return 1
    return 0
