# HG changeset patch # User Sylvain Thénault # Date 1268322133 -3600 # Node ID f6cf0fcd40ae2a918b39169e69e9906c06c99af9 # Parent 0d0e5279f65e90012a47594b65d237906a8d73e6 [pyviews] add thead/tbody to pyvaltable view diff -r 0d0e5279f65e -r f6cf0fcd40ae web/views/pyviews.py --- a/web/views/pyviews.py Thu Mar 11 16:41:43 2010 +0100 +++ b/web/views/pyviews.py Thu Mar 11 16:42:13 2010 +0100 @@ -17,18 +17,23 @@ def call(self, pyvalue, headers=None): if headers is None: headers = self._cw.form.get('headers') - self.w(u'\n') + w = self.w + w(u'
\n') if headers: - self.w(u'') + w(u'') + w(u'') for header in headers: - self.w(u'' % header) - self.w(u'\n') + w(u'' % header) + w(u'\n') + w(u'') + w(u'') for row in pyvalue: - self.w(u'') + w(u'') for cell in row: - self.w(u'' % cell) - self.w(u'\n') - self.w(u'
%s
%s
%s
\n') + w(u'%s' % cell) + w(u'\n') + w(u'') + w(u'\n') class PyValListView(View):