web/views/vcard.py
branchtls-sprint
changeset 728 a95b284150d1
parent 688 cddfbdee0eb3
child 889 609edca88406
equal deleted inserted replaced
727:30fe8f5afbd8 728:a95b284150d1
    17     """export a person information as a vcard"""
    17     """export a person information as a vcard"""
    18     id = 'vcard'
    18     id = 'vcard'
    19     title = _('vcard')
    19     title = _('vcard')
    20     templatable = False
    20     templatable = False
    21     content_type = 'text/x-vcard'
    21     content_type = 'text/x-vcard'
    22     __selectors__ = implements('EUser')        
    22     __select__ = implements('EUser')        
    23 
    23 
    24     def set_request_content_type(self):
    24     def set_request_content_type(self):
    25         """overriden to set a .vcf filename"""
    25         """overriden to set a .vcf filename"""
    26         self.req.set_content_type(self.content_type, filename='vcard.vcf')
    26         self.req.set_content_type(self.content_type, filename='vcard.vcf')
    27         
    27