Exemplo n.º 1
0
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
Exemplo n.º 2
0
    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