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 @@ ...@@ -26,6 +26,7 @@
class SIOCView(EntityView): class SIOCView(EntityView):
id = 'sioc' id = 'sioc'
__selectors__ = (implement_interface,)
title = _('sioc') title = _('sioc')
accepts = ('Blog', 'BlogEntry') accepts = ('Blog', 'BlogEntry')
templatable = False templatable = False
...@@ -29,7 +30,6 @@ ...@@ -29,7 +30,6 @@
title = _('sioc') title = _('sioc')
accepts = ('Blog', 'BlogEntry') accepts = ('Blog', 'BlogEntry')
templatable = False templatable = False
__selectors__ = (implement_interface,)
accepts_interfaces = (ISIOC,) accepts_interfaces = (ISIOC,)
content_type = 'text/xml' content_type = 'text/xml'
item_vid = 'sioc_item' item_vid = 'sioc_item'
...@@ -227,7 +227,7 @@ ...@@ -227,7 +227,7 @@
rss_label = u'%s <img src="%s" alt="%s"/>' % ( rss_label = u'%s <img src="%s" alt="%s"/>' % (
self.req._(u'subscribe'), rss_icon, self.req._('rss icon')) self.req._(u'subscribe'), rss_icon, self.req._('rss icon'))
rss_url = self.build_url(vid='rss', rql=rql) 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) box.render(self.w)
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
box.render(self.w) box.render(self.w)
class OneLineView(EntityView): # class OneLineView(EntityView):
accepts = ('BlogEntry',) # accepts = ('BlogEntry',)
id = 'sideboxview' # id = 'sideboxview'
...@@ -237,11 +237,11 @@ ...@@ -237,11 +237,11 @@
def cell_call(self, row, col): # def cell_call(self, row, col):
"""the view to be used in a side box # """the view to be used in a side box
""" # """
entity = self.entity(row, col) # entity = self.entity(row, col)
self.w(u'<li class="Box"><a href="%s">' % html_escape(entity.absolute_url())) # 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(html_escape(self.view('text', self.rset, row=row, col=col)))
self.w(u'</a></li>') # self.w(u'</a></li>')
## list views ################################################################# ## 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