Re: simpletag to accumulate media without duplicates

2009-05-10 Thread Margie
Yes, I bet you are right. I think I have to use a "non simple" tag, the kind where I write the parser and renderer. I think I did that a while back, will go off and search my old code. Thanks for the pointer. Margie On May 9, 9:39 pm, Dan Mallinger wrote: > Hi Margie, > > I'm not sure off th

Re: simpletag to accumulate media without duplicates

2009-05-09 Thread Dan Mallinger
Hi Margie, I'm not sure off the top of my head, but if memory serves me right, template tags may not allow variable number of parameters. I'd take a look at the code from the {% url %} template tag, it's syntax allows for multiple variables, but they're passed in a very particular way. It's actu

simpletag to accumulate media without duplicates

2009-05-09 Thread Margie
I want to write a templatetag that goes through a bunch of media and returns the media lines without duplicates, something like this (except I'm not removing duplicates here, not sure if the '+' is going do it for me or not). def form_media(*args): finalFormMedia = Media() for formMedia i