Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47656
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andipersti@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'retrieved': 0.05; 'list?': 0.07; 'subject:form': 0.07; '"if': 0.09; 'instances.': 0.09; 'subject:string': 0.09; '12:38,': 0.16; 'andreas': 0.16; 'bye,': 0.16; 'similarly,': 0.16; 'subject:variable': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'header:User-Agent:1': 0.23; 'error': 0.23; 'header:In-Reply-To:1': 0.27; 'subject:list': 0.30; 'says': 0.33; 'url:python': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'list': 0.37; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'url:library': 0.38; 'to:addr :python-list': 0.38; 'previous': 0.38; 'to:addr:python.org': 0.39; 'url:3': 0.61; 'such': 0.63; 'field': 0.63; 'more': 0.64; '8bit%:100': 0.72; 'sumbitted': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=lLykefZfXVNnaDhGfrQBVG/zrg3OBfN6ZhlAg04ywt8=; b=gCAYS0yBKGlUy1fNvWhqfG5M76sPOxyEnmRUBRmkWqHTpLUfC6u2Co7E8ID65brLfS UuxI6Uer3jgG5NdImgfLmu+zE0xL3dnvt09bL6gohBCyo1jbo32ym9uwKA7c9VKBydjb uW0uZVrfc7qAnkGVf62XartfOOHG2a8ReY0/OnxLNtbyqz6EXWLbsXm41qXVkjng6l0o dbm0+oJ1NUofEqU70iLyUp83FjycOIuIMY6LtLQVYX7wPz8P1TXmw+VVV3asgfaL+nxR 57ZHLfFTcK1b89X5ddycmgcuSLHylptIGz+IwFUtMXbtex6wHTy/CEfqRinj8qo53qeV 8OtA== |
| X-Received | by 10.204.197.142 with SMTP id ek14mr2172206bkb.164.1370952106008; Tue, 11 Jun 2013 05:01:46 -0700 (PDT) |
| Date | Tue, 11 Jun 2013 14:01:43 +0200 |
| From | Andreas Perstinger <andipersti@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Receing a form variable as a list instead of as a string |
| References | <66c9a650-e7a0-46a4-92da-b08d1af3bd46@googlegroups.com> |
| In-Reply-To | <66c9a650-e7a0-46a4-92da-b08d1af3bd46@googlegroups.com> |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3017.1370952113.3114.python-list@python.org> (permalink) |
| Lines | 12 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1370952113 news.xs4all.nl 15957 [2001:888:2000:d::a6]:60500 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:47656 |
Show key headers only | View raw
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