specify content type for text views
authorsylvain.thenault@logilab.fr
Fri, 30 Jan 2009 15:30:30 +0100
changeset 532 ce3e94cbb074
parent 531 d33f80ff1b72
child 533 215ecdb5f047
specify content type for text views
web/views/baseviews.py
--- a/web/views/baseviews.py	Fri Jan 30 15:30:15 2009 +0100
+++ b/web/views/baseviews.py	Fri Jan 30 15:30:30 2009 +0100
@@ -354,10 +354,10 @@
         self.w(u'</a>')
 
 class TextView(EntityView):
-    """the simplest text view for an entity
-    """
+    """the simplest text view for an entity"""
     id = 'text'
     title = _('text')
+    content_type = 'text/plain'
     accepts = 'Any',
     def call(self, **kwargs):
         """the view is called for an entire result set, by default loop