On 6/7/07, Trey <[EMAIL PROTECTED]> wrote: > > I thought that something like that was the answer. > > Normally I would agree but I can't think of another way to make a > calendar style layout with certain events on it. Check out my glorious > hack and tell me what you think.
My eyes! They burn! :-) Seriously - I'd avoid this sort of construct like the plague. You make your view more complex and harder to read, and you remove rendering flexibility from your template author (what if the designer doesn't want to use tables?). However, you're already most of the way there.You have an algorithm that turns a calendar object into a series of lists; you just need to compile those lists, and provide a 'list of lists' to the template. Yours, Russ Magee %-) --~--~---------~--~----~------------~-------~--~----~ 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 more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---