Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47656
| Date | 2013-06-11 14:01 +0200 |
|---|---|
| From | Andreas Perstinger <andipersti@gmail.com> |
| Subject | Re: Receing a form variable as a list instead of as a string |
| References | <66c9a650-e7a0-46a4-92da-b08d1af3bd46@googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3017.1370952113.3114.python-list@python.org> (permalink) |
On 11.06.2013 12:38, Νικόλαος Κούρας wrote: > but page is a form variable coming from a previous sumbitted form > why the error says 'page' is a list? RTFM: "If the submitted form data contains more than one field with the same name, the object retrieved by form[key] is not a FieldStorage or MiniFieldStorage instance but a list of such instances. Similarly, in this situation, form.getvalue(key) would return a list of strings." http://docs.python.org/3.3/library/cgi.html#using-the-cgi-module Bye, Andreas
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Receing a form variable as a list instead of as a string Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-11 03:38 -0700
Re: Receing a form variable as a list instead of as a string Andreas Perstinger <andipersti@gmail.com> - 2013-06-11 14:01 +0200
Re: Receing a form variable as a list instead of as a string Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2013-06-11 13:51 +0200
Re: Receing a form variable as a list instead of as a string Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-11 12:42 -0700
Re: Receing a form variable as a list instead of as a string Νικόλαος Κούρας <nikos.gr33k@gmail.com> - 2013-06-11 13:16 -0700
Re: Receing a form variable as a list instead of as a string alex23 <wuwei23@gmail.com> - 2013-06-11 18:06 -0700
Re: Receing a form variable as a list instead of as a string alex23 <wuwei23@gmail.com> - 2013-06-11 16:47 -0700
Re: Receing a form variable as a list instead of as a string nagia.retsina@gmail.com - 2013-06-11 18:29 -0700
Re: Receing a form variable as a list instead of as a string Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-12 06:16 +0000
csiph-web