web/views/xbel.py
branchtls-sprint
changeset 1653 8b82227719f0
parent 824 a5e6acffde30
child 1977 606923dff11b
--- a/web/views/xbel.py	Mon May 04 15:48:43 2009 +0200
+++ b/web/views/xbel.py	Mon May 04 15:49:20 2009 +0200
@@ -11,18 +11,18 @@
 
 from cubicweb.selectors import implements
 from cubicweb.view import EntityView
-from cubicweb.web.views.xmlrss import XmlView
+from cubicweb.web.views.xmlrss import XMLView
 
 
-class XbelView(XmlView):
+class XbelView(XMLView):
     id = 'xbel'
     title = _('xbel')
     templatable = False
-    content_type = 'text/xml' #application/xbel+xml 
-    
+    content_type = 'text/xml' #application/xbel+xml
+
     def cell_call(self, row, col):
         self.wview('xbelitem', self.rset, row=row, col=col)
-        
+
     def call(self):
         """display a list of entities by calling their <item_vid> view"""
         title = self.page_title()
@@ -34,7 +34,7 @@
         for i in xrange(self.rset.rowcount):
             self.cell_call(i, 0)
         self.w(u"</xbel>")
-    
+
 
 class XbelItemView(EntityView):
     id = 'xbelitem'
@@ -48,10 +48,10 @@
     def url(self, entity):
         return entity.absolute_url()
 
-        
+
 class XbelItemBookmarkView(XbelItemView):
     __select__ = implements('Bookmark')
 
     def url(self, entity):
         return entity.actual_url()
-        
+