web/views/tableview.py
changeset 5727 29afb9e715bb
parent 5679 0f2ded880d01
child 5940 0e3ae19b181a
equal deleted inserted replaced
5726:c3b99606644d 5727:29afb9e715bb
   405             if meth:
   405             if meth:
   406                 content = meth(entity)
   406                 content = meth(entity)
   407             else:
   407             else:
   408                 content = entity.printable_value(col)
   408                 content = entity.printable_value(col)
   409             infos[col] = content
   409             infos[col] = content
   410         self.w(u"""<tr onmouseover="addElementClass(this, 'highlighted');"
   410         self.w(u"""<tr onmouseover="$(this).addClass('highlighted');"
   411             onmouseout="removeElementClass(this, 'highlighted')">""")
   411             onmouseout="$(this).removeClass('highlighted')">""")
   412         line = u''.join(u'<td>%%(%s)s</td>' % col for col in self.columns)
   412         line = u''.join(u'<td>%%(%s)s</td>' % col for col in self.columns)
   413         self.w(line % infos)
   413         self.w(line % infos)
   414         self.w(u'</tr>\n')
   414         self.w(u'</tr>\n')
   415 
   415 
   416     def table_header(self, sample):
   416     def table_header(self, sample):