Re: trying to get whether image is wider or deeper in templatetag

2009-02-23 Thread David MacDougall
photoobj = bits[1] varname = bits[3] else: raise template.TemplateSyntaxError, "'%s' tag takes either one or two arguments" % bits[0] return WideOrDeepNode(photoobj,varname) On Feb 22, 7:30 pm, Malcolm Tredinnick wrote: > On Sun, 2009-02-22 at

Re: trying to get whether image is wider or deeper in templatetag

2009-02-22 Thread David MacDougall
lm Tredinnick wrote: > On Fri, 2009-02-20 at 22:03 -0800, David MacDougall wrote: > > Hi Malcolm, > > Thanks for your patient guidance. I took your advice on a better name > > for the variable. Now it should return true if the image_is_vertical. > >  I am getting a lot clos

Re: trying to get whether image is wider or deeper in templatetag

2009-02-20 Thread David MacDougall
Hi Malcolm, Thanks for your patient guidance. I took your advice on a better name for the variable. Now it should return true if the image_is_vertical. I am getting a lot closer, but I think I am losing the photo's ID when I get to the templatetag in photos.py. Here's what debug tells me: Progra