Exemplo n.º 1
0
 def buildInfo(self, contact):
     return {
         'link': absoluteURL(contact, self.request),
         'relationship': get_relationship_title(self.person, contact),
         'name': " ".join(self._extract_attrs(contact, IContactPerson)),
         'address': ", ".join(self._extract_attrs(contact, IAddress)),
         'emails': ", ".join(self._extract_attrs(contact, IEmails)),
         'phones':
         list(self._extract_attrs(contact, IPhones, add_title=True)),
         'languages': ", ".join(self._extract_attrs(contact, ILanguages)),
     }
Exemplo n.º 2
0
 def buildInfo(self, contact):
     return {
         'link': absoluteURL(contact, self.request),
         'relationship': get_relationship_title(self.person, contact),
         'name': " ".join(self._extract_attrs(
             contact, IContactPerson)),
         'address': ", ".join(self._extract_attrs(contact, IAddress)),
         'emails': ", ".join(self._extract_attrs(contact, IEmails)),
         'phones': list(self._extract_attrs(contact, IPhones, add_title=True)),
         'languages': ", ".join(self._extract_attrs(contact, ILanguages)),
         }
Exemplo n.º 3
0
 def buildInfo(self, contact):
     contact = IContact(contact)
     title = get_relationship_title(self.person, contact)
     return self.contactInfo(contact, title)
Exemplo n.º 4
0
 def format_item(item, formatter):
     if person is None:
         return u''
     item = removeSecurityProxy(item)
     return get_relationship_title(person, item)
Exemplo n.º 5
0
 def format_item(item, formatter):
     if person is None:
         return u""
     item = removeSecurityProxy(item)
     return get_relationship_title(person, item)
Exemplo n.º 6
0
 def buildInfo(self, contact):
     contact = IContact(contact)
     title = get_relationship_title(self.person, contact)
     return self.contactInfo(contact, title)