# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1241444960 -7200 # Node ID 8b82227719f05e9b46342a5b17b7f863c71d6715 # Parent ba0a6b4d04f7ff921567ee407161d6a6f833089d follow renaming diff -r ba0a6b4d04f7 -r 8b82227719f0 web/views/baseviews.py --- a/web/views/baseviews.py Mon May 04 15:48:43 2009 +0200 +++ b/web/views/baseviews.py Mon May 04 15:49:20 2009 +0200 @@ -374,9 +374,9 @@ from cubicweb.web.views import boxes, xmlrss, primary PrimaryView = class_moved(primary.PrimaryView) SideBoxView = class_moved(boxes.SideBoxView) -XmlView = class_moved(xmlrss.XmlView) -XmlItemView = class_moved(xmlrss.XmlItemView) -XmlRsetView = class_moved(xmlrss.XmlRsetView) -RssView = class_moved(xmlrss.RssView) -RssItemView = class_moved(xmlrss.RssItemView) +XmlView = class_moved(xmlrss.XMLView) +XmlItemView = class_moved(xmlrss.XMLItemView) +XmlRsetView = class_moved(xmlrss.XMLRsetView) +RssView = class_moved(xmlrss.RSSView) +RssItemView = class_moved(xmlrss.RSSItemView) diff -r ba0a6b4d04f7 -r 8b82227719f0 web/views/xbel.py --- 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 view""" title = self.page_title() @@ -34,7 +34,7 @@ for i in xrange(self.rset.rowcount): self.cell_call(i, 0) self.w(u"") - + 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() - +