web/views/vcard.py
branchtls-sprint
changeset 688 cddfbdee0eb3
parent 10 36d1e8d715af
child 728 a95b284150d1
--- a/web/views/vcard.py	Tue Feb 17 20:34:20 2009 +0100
+++ b/web/views/vcard.py	Tue Feb 17 20:39:09 2009 +0100
@@ -6,6 +6,7 @@
 """
 __docformat__ = "restructuredtext en"
 
+from cubicweb.selectors import implements
 from cubicweb.common.view import EntityView
 
 _ = unicode 
@@ -18,8 +19,7 @@
     title = _('vcard')
     templatable = False
     content_type = 'text/x-vcard'
-    accepts = ('EUser',)
-        
+    __selectors__ = implements('EUser')        
 
     def set_request_content_type(self):
         """overriden to set a .vcf filename"""