Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'retrieved': 0.05; 'arguments': 0.07; 'executed': 0.07; 'strings.': 0.07; 'instances.': 0.09; 'subject:error': 0.11; '"""if': 0.16; 'from:addr:mrabarnett.plus.com': 0.16; 'from:addr:python': 0.16; 'from:name:mrab': 0.16; 'message-id:@mrabarnett.plus.com': 0.16; 'similarly,': 0.16; 'subject:when': 0.16; 'url:py': 0.16; 'string': 0.17; 'wrote:': 0.17; 'instance': 0.17; 'skip:" 40': 0.20; 'produces': 0.22; 'errors': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'arguments.': 0.29; 'probably': 0.29; 'code': 0.31; 'says': 0.33; 'to:addr:python-list': 0.33; 'list': 0.35; 'but': 0.36; 'data': 0.37; 'subject:: ': 0.38; 'fact': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'link': 0.60; 'different': 0.63; 'more': 0.63; 'webpage': 0.65; 'header:Reply-To:1': 0.68; 'reply-to:no real name:2**0': 0.72; 'subject:this': 0.84; '2013': 0.84; 'reply-to:addr:python.org': 0.84 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.0 cv=XeZXOvF5 c=1 sm=1 a=0nF1XD0wxitMEM03M9B4ZQ==:17 a=_vX2mLoUpDQA:10 a=J71Ct4_JqLYA:10 a=ihvODaAuJD4A:10 a=OUOv7kDek9cA:10 a=IkcTkHD0fZMA:10 a=EBOSESyhAAAA:8 a=8AHkEIZyAAAA:8 a=JwJAlPgJRXEA:10 a=pGLkceISAAAA:8 a=NXsfvHnzAAAA:8 a=9shig_57mQZsGpPBYWUA:9 a=QEXdDO2ut3YA:10 a=MSl-tDqOz04A:10 a=0nF1XD0wxitMEM03M9B4ZQ==:117 X-AUTH: mrabarnett:2500 Date: Fri, 08 Mar 2013 17:24:40 +0000 From: MRAB User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130215 Thunderbird/17.0.3 MIME-Version: 1.0 To: python-list@python.org Subject: Re: I cant understand this error when i click a link on my website References: In-Reply-To: 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 Reply-To: python-list@python.org List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1362763479 news.xs4all.nl 6918 [2001:888:2000:d::a6]:60885 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:40875 On 08/03/2013 17:04, Sven wrote: > On 8 March 2013 16:50, Νίκος Γκρ33κ > wrote: > > > > but that same exact code is executed withour errors when someone is > http://superhost.gr > > the erro is produces when he is requesting a link from that page... > -- > > > But with different arguments. It's > http://superhost.gr/?htmlpage=files.py http://superhost.gr/ and the > arguments to your regex are coming up as > "string=['/home/nikos/public_html/index.html', 'files.py']" which is > clearly a list of strings. > In the case of http://superhost.gr/ it's probably just a single string > The documentation for getvalue says """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.""" This suggests that the webpage may in fact have 2 fields with the name "htmlpage".