web/views/baseviews.py
branchtls-sprint
changeset 795 63f4f81e19f1
parent 760 95b3419e94c5
child 824 a5e6acffde30
equal deleted inserted replaced
794:b2f962292dbf 795:63f4f81e19f1
   441 
   441 
   442     def cell_call(self, row, col):
   442     def cell_call(self, row, col):
   443         self.w(u'<a href="%s">' % self.entity(row, col).absolute_url())
   443         self.w(u'<a href="%s">' % self.entity(row, col).absolute_url())
   444         self.w(html_escape(self.view('textoutofcontext', self.rset, row=row, col=col)))
   444         self.w(html_escape(self.view('textoutofcontext', self.rset, row=row, col=col)))
   445         self.w(u'</a>')
   445         self.w(u'</a>')
   446 
       
   447 class NotClickableInContextView(EntityView):
       
   448     id = 'incontext'
       
   449 
       
   450     def cell_call(self, row, col):
       
   451         self.w(html_escape(self.view('textincontext', self.rset, row=row, col=col)))
       
   452 
       
   453 ## class NotClickableOutOfContextView(EntityView):
       
   454 ##     id = 'outofcontext'
       
   455 
       
   456 ##     def cell_call(self, row, col):
       
   457 ##         self.w(html_escape(self.view('textoutofcontext', self.rset, row=row)))
       
   458 
       
   459             
   446             
   460 # list and table related views ################################################
   447 # list and table related views ################################################
   461     
   448     
   462 class ListView(EntityView):
   449 class ListView(EntityView):
   463     id = 'list'
   450     id = 'list'