> But it sounds to me like you might want to look into creating your own
> template tag to generate the calendar HTML. I'd rather do that than go
> nuts with nested loops inside a template.

Just to follow up on this...

I have a working solution. Right or wrong, my answer was to create a
template tag that generates the calendar, html and all.

As the looping I need to do is beyond the default Django template
conditionals, I patched together a  multiline block type """string"""
which included the html formatting. Not very elegant, but it does the
job.

I'd still be interested to know if there would be a better way of
doing this though. As I explained, I need to build up a set of nest
lists (which forms the Calendar). In order to do that, I need to fetch
values from a 3 level deep array (combo of dicts and lists). This
necessitates that I make use while lists and iterators to find the
values.

So if anyone has a better way of doing this, please let me know and
I'll do some refactoring.

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to