Hello all;
I have a search form which uses certain values (name, surname) which are
passed again to the template to show what the user have searched; by now
i'm using something similar to:
i = web.input(
name = None,
surname = None
)
[...]
if i.name:
where += ...
(same with surname)
because if i don't initialize all the vars i'm using in the template,
and i use "if 'name' in i" i get an error when parsing the template.
Is this the preferred method or is there (i assume yes) a better way to
achieve this?
Thank you :)
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/webpy?hl=en.