Hi All,

I have the following list of tuples:
[(0, 'Jenna'),
 (1, 'Tom'),
 (1, 'Paul'),
 (2, 'Cathy')]

I want to create a table with as many row as the number of tuples (one
row for each tuple). The first element of each tuple is the number of
tabulations or empty cells to put in each row. The second element is
the string to write in the last cell of the row. So the resulting
table would look like this:

| Jenna                             |
|           | Tom                   |
|           | Paul                   |
|           |             | Cathy   |


I haven't been able to accomplish this using the template system and
the context rendering. I could get to something close using the
built-in tag 'widthratio' and a spacer GIF. But I don't think it is an
elegant solution.

Has someone done something similar.
Any help would be appreciated.

Thanks.
Sam

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to