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):