Receing a form variable as a list instead of as a string

alex23 wuwei23 at gmail.com
Tue Jun 11 19:47:19 EDT 2013


On Jun 12, 5:42 am, Νικόλαος Κούρας <nikos.gr... at gmail.com> wrote:
> Indeed as Andreas said i was overusing the form variable 'page'

No. You're simply _not_ thinking about what you're doing.

> elif page or form.getvalue('show'):
>         # it is a python script
>         page = page
> else:
>         #when everything else fails default
>         page = page

What do you think "page = page" is doing? Hint: you could replace
those lines with 'pass' and your code would work _exactly the same_.



More information about the Python-list mailing list