def in_organization(contact, S): org = contact.getOrganization() if org: for oe in orgf.getOrgAsStringList(org): if S in oe.upper(): return True return False
def getValueAsString(self, grid, row, col): """Returns the requested value as usable unicode string. Each entry is delimited by self._DELIMITER """ org = u"" o=grid.GetTable().GetValue(row,col) if type(o) == str: # empty return u" " for l in orgf.getOrgAsStringList(o): if l: org += unicode(l).replace("\n"," ")+u" " org += self._DELIMITER return org