[web2py] Re: Nesting HTML tables

2012-01-31 Thread tsvim
Well apparently you're correct. Nesting a table within a table is only possible if the inner table is within a td according to the HTML spec. (Not that it doesn't render ok in most browsers) I was copying from some Google result on nested tables. I managed to get my wanted result by setting a cor

[web2py] Re: Nesting HTML tables

2012-01-31 Thread Cliff
Try this: t = TABLE( (1,2,3), (4,5,6), # trailing comma # a blessing for sloppy coders ) Reasoning that nesting is allowed, we come to this: t = TABLE( (1,2,3), (4,5,6), (TABLE( ('one', 'two', 'three'), ('four', 'five', 'six

[web2py] Re: Nesting HTML tables

2012-01-29 Thread DenesL
Can we see the code? In the following example no tbody is added to the inner table: >>> t=TABLE(*[TR(TABLE( *[ TR(*[1,2,3]), TR(*[4,5,6])] )),TR()]) >>> print t 123456 or nicely formatted: 123 456 On Jan 29, 4:10 pm, Tsvi Mostovicz wrote

[web2py] Re: Nesting HTML tables

2012-01-29 Thread Alan Etkin
Have you tried passing table components as arguments? TABLE(THEAD(), TBODY(), THEAD(), TBODY(), ...) You could explore each table helper instance and extract the parts you want to nest and then in a view do something like this: {{ for table in tables:}} {{ table.elements("thead")[0] }} {{ tab