web/views/vcard.py
changeset 10666 7f6b5f023884
parent 8190 2a3c1b787688
equal deleted inserted replaced
10665:79ff784cd8af 10666:7f6b5f023884
    21 __docformat__ = "restructuredtext en"
    21 __docformat__ = "restructuredtext en"
    22 
    22 
    23 from cubicweb.predicates import is_instance
    23 from cubicweb.predicates import is_instance
    24 from cubicweb.view import EntityView
    24 from cubicweb.view import EntityView
    25 
    25 
    26 _ = unicode
    26 from cubicweb import _
    27 
    27 
    28 VCARD_PHONE_TYPES = {'home': 'HOME', 'office': 'WORK', 'mobile': 'CELL', 'fax': 'FAX'}
    28 VCARD_PHONE_TYPES = {'home': 'HOME', 'office': 'WORK', 'mobile': 'CELL', 'fax': 'FAX'}
    29 
    29 
    30 class VCardCWUserView(EntityView):
    30 class VCardCWUserView(EntityView):
    31     """export a person information as a vcard"""
    31     """export a person information as a vcard"""