# HG changeset patch
# User sylvain.thenault@logilab.fr
# Date 1241445758 -7200
# Node ID 094c06d0cd3b2b1d69043ba30a7dadd3c01c3864
# Parent b9b59e7239ab5580e8bf9551704422f8148e76d4
buggy sioc views
diff -r b9b59e7239ab -r 094c06d0cd3b web/views/isioc.py
--- a/web/views/isioc.py Mon May 04 15:50:31 2009 +0200
+++ b/web/views/isioc.py Mon May 04 16:02:38 2009 +0200
@@ -44,13 +44,17 @@
def cell_call(self, row, col):
entity = self.complete_entity(row, col)
- self.w(u'\n' % (html_escape(entity.isioc_type()),
- html_escape(entity.absolute_url())))
- self.w(u'%s' % html_escape(entity.dc_title()))
- self.w(u'%s' % entity.creation_date)
- self.w(u'%s' % entity.modification_date)
+ sioct = html_escape(entity.isioc_type())
+ self.w(u'\n'
+ % (sioct, html_escape(entity.absolute_url())))
+ self.w(u'%s'
+ % html_escape(entity.dc_title()))
+ self.w(u'%s'
+ % entity.creation_date)
+ self.w(u'%s'
+ % entity.modification_date)
self.w(u'')#entity.isioc_items()
- self.w(u'\n' % entity.isioc_type())
+ self.w(u'\n' % sioct)
class SIOCItemView(EntityView):
@@ -61,22 +65,29 @@
def cell_call(self, row, col):
entity = self.complete_entity(row, col)
- self.w(u'\n' % (html_escape(entity.isioc_type()),
- html_escape(entity.absolute_url())))
- self.w(u'%s' % html_escape(entity.dc_title()))
- self.w(u'%s' % entity.creation_date)
- self.w(u'%s' % entity.modification_date)
+ sioct = html_escape(entity.isioc_type())
+ self.w(u'\n'
+ % (sioct, html_escape(entity.absolute_url())))
+ self.w(u'%s'
+ % html_escape(entity.dc_title()))
+ self.w(u'%s'
+ % entity.creation_date)
+ self.w(u'%s'
+ % entity.modification_date)
if entity.content:
- self.w(u'%s''' % html_escape(entity.isioc_content()))
+ self.w(u'%s'''
+ % html_escape(entity.isioc_content()))
if entity.related('entry_of'):
- self.w(u'\n' % html_escape(entity.isioc_container().absolute_url()))
+ self.w(u'\n'
+ % html_escape(entity.isioc_container().absolute_url()))
if entity.creator:
self.w(u'\n')
- self.w(u'\n' % html_escape(entity.creator.absolute_url()))
+ self.w(u'\n'
+ % html_escape(entity.creator.absolute_url()))
self.w(entity.creator.view('foaf'))
self.w(u'\n')
self.w(u'\n')
self.w(u'')#entity.isioc_topics()
self.w(u'')#entity.isioc_replies()
- self.w(u' \n' % 'Post')
+ self.w(u' \n' % sioct)