Re: check for none

2006-04-13 Thread Tom Tobin
On 4/12/06, Jiri Barton <[EMAIL PROTECTED]> wrote: > > how do I check if a variable is None in a template? > > I want to be able to discern among None, empty list, and non-empty > list; then, I want to tell the user - say nothing, "nothing found", > "found the following:" resp. This is likely a si

Re: check for none

2006-04-12 Thread Ivan Sagalaev
Jiri Barton wrote: >I want to be able to discern among None, empty list, and non-empty >list; then, I want to tell the user - say nothing, "nothing found", >"found the following:" resp. > > I had a similar (but a bit more complex) thing solved for me by wrapping a list in a dict: result={} -