Skip to content
Snippets Groups Projects
Commit 894efdba6a8b authored by sylvain thenault's avatar sylvain thenault
Browse files

too much html_escaping, comment out sideboxview (seems unused)

parent 39854bb2cff4
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@
class SIOCView(EntityView):
id = 'sioc'
__selectors__ = (implement_interface,)
title = _('sioc')
accepts = ('Blog', 'BlogEntry')
templatable = False
......@@ -29,7 +30,6 @@
title = _('sioc')
accepts = ('Blog', 'BlogEntry')
templatable = False
__selectors__ = (implement_interface,)
accepts_interfaces = (ISIOC,)
content_type = 'text/xml'
item_vid = 'sioc_item'
......@@ -227,7 +227,7 @@
rss_label = u'%s <img src="%s" alt="%s"/>' % (
self.req._(u'subscribe'), rss_icon, self.req._('rss icon'))
rss_url = self.build_url(vid='rss', rql=rql)
box.append(BoxLink(rss_url, html_escape(rss_label)))
box.append(BoxLink(rss_url, rss_label))
box.render(self.w)
......@@ -231,7 +231,7 @@
box.render(self.w)
class OneLineView(EntityView):
accepts = ('BlogEntry',)
id = 'sideboxview'
# class OneLineView(EntityView):
# accepts = ('BlogEntry',)
# id = 'sideboxview'
......@@ -237,11 +237,11 @@
def cell_call(self, row, col):
"""the view to be used in a side box
"""
entity = self.entity(row, col)
self.w(u'<li class="Box"><a href="%s">' % html_escape(entity.absolute_url()))
self.w(html_escape(self.view('text', self.rset, row=row, col=col)))
self.w(u'</a></li>')
# def cell_call(self, row, col):
# """the view to be used in a side box
# """
# entity = self.entity(row, col)
# self.w(u'<li class="Box"><a href="%s">' % html_escape(entity.absolute_url()))
# self.w(html_escape(self.view('text', self.rset, row=row, col=col)))
# self.w(u'</a></li>')
## list views #################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment