web/views/vcard.py
changeset 3451 6b46d73823f5
parent 3408 c92170fca813
child 3460 e4843535db25
equal deleted inserted replaced
3448:495862266785 3451:6b46d73823f5
    22     content_type = 'text/x-vcard'
    22     content_type = 'text/x-vcard'
    23     __select__ = implements('CWUser')
    23     __select__ = implements('CWUser')
    24 
    24 
    25     def set_request_content_type(self):
    25     def set_request_content_type(self):
    26         """overriden to set a .vcf filename"""
    26         """overriden to set a .vcf filename"""
    27         self.req.set_content_type(self.content_type, filename='vcard.vcf')
    27         self._cw.set_content_type(self.content_type, filename='vcard.vcf')
    28 
    28 
    29     def cell_call(self, row, col):
    29     def cell_call(self, row, col):
    30         self.vcard_header()
    30         self.vcard_header()
    31         self.vcard_content(self.complete_entity(row, col))
    31         self.vcard_content(self.complete_entity(row, col))
    32         self.vcard_footer()
    32         self.vcard_footer()