Re: Template tag to split list evenly

2008-09-24 Thread Annie
Hi Mike - Replying to an older post, under the theory that any answer helps, even if it comes months later. ;) In July I posted a template tag that allows you to break a list up into n number of sublists. The snippet is here: http://www.djangosnippets.org/snippets/889/ with more detailed info

Re: Template tag to split list evenly

2008-06-03 Thread mike171562
Thanks for your help tim, I had a look at your filter, but I ended up using the template tag here: http://www.djangosnippets.org/snippets/660/ The only problem is it requires you to know the length of your list, and the length of mine varies. {% load splitlist %} {% split_list tags as

Re: Template tag to split list evenly

2008-06-02 Thread Tim Chase
> I am building a django-app that pulls call logs from a mysql > database and displays reports, I am trying to make the reports > printable and I use a CSS that splits them into two columns on > the page. I am trying to find a template tag that will split > the lists up so that they will fit onto

Re: Template tag to split list evenly

2008-06-02 Thread Tim Chase
1) no body...this leaves the question up to a lot of interpretation. 2) what happens if the list has an odd number of items list? 3) what happens if there are a prime number of items in the list? You might also be interested in my columnize() filter[1] which could be modified to use a

Re: Template tag to split list evenly

2008-06-02 Thread mike171562
I am building a django-app that pulls call logs from a mysql database and displays reports, I am trying to make the reports printable and I use a CSS that splits them into two columns on the page. I am trying to find a template tag that will split the lists up so that they will fit onto a printed

Template tag to split list evenly

2008-06-02 Thread mike171562
Hello, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For