From ff17b551b458349d67111e60377e4fcb06de60b4 Mon Sep 17 00:00:00 2001 From: Paolo Caruccio Date: Thu, 6 Feb 2014 16:25:42 +0100 Subject: [PATCH] greater flexibility for row customization by using css --- gluon/sqlhtml.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gluon/sqlhtml.py b/gluon/sqlhtml.py index dd4b7bf5..ef96b222 100644 --- a/gluon/sqlhtml.py +++ b/gluon/sqlhtml.py @@ -2914,6 +2914,8 @@ class SQLTABLE(TABLE): renderstyle=False, cid=None, colgroup=False, + even_row_cls='even', + odd_row_cls='odd', **attributes ): @@ -2978,9 +2980,9 @@ class SQLTABLE(TABLE): for (rc, record) in enumerate(sqlrows): row = [] if rc % 2 == 0: - _class = 'even' + _class = even_row_cls else: - _class = 'odd' + _class = odd_row_cls if not selectid is None: # new implement if record.get('id') == selectid: