Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #40875

Re: I cant understand this error when i click a link on my website

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 <python@mrabarnett.plus.com>
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 <python@mrabarnett.plus.com>
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 <e72cf106-db58-45b4-bcb8-3e519b83e2bb@googlegroups.com> <mailman.3088.1362761198.2939.python-list@python.org> <fbaf3979-b0a3-4cf4-9eac-4c9c1300dc6f@googlegroups.com> <CAEH=cXVH-qWaLvFT1xdynk6SMQ3C5dJL-5rnw2U7+r_P=N8BOQ@mail.gmail.com>
In-Reply-To <CAEH=cXVH-qWaLvFT1xdynk6SMQ3C5dJL-5rnw2U7+r_P=N8BOQ@mail.gmail.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
Reply-To python-list@python.org
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.3092.1362763479.2939.python-list@python.org> (permalink)
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

Show key headers only | View raw


On 08/03/2013 17:04, Sven wrote:
> On 8 March 2013 16:50, Νίκος Γκρ33κ <nikos.gr33k@gmail.com
> <mailto:nikos.gr33k@gmail.com>> 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".

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

I cant understand this error when i click a link on my website Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-08 08:35 -0800
  Re: I cant understand this error when i click a link on my website Chris Angelico <rosuav@gmail.com> - 2013-03-09 03:46 +1100
    Re: I cant understand this error when i click a link on my website Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-08 08:50 -0800
      Re: I cant understand this error when i click a link on my website Sven <svenito@gmail.com> - 2013-03-08 17:04 +0000
        Re: I cant understand this error when i click a link on my website info@cravendot.gr - 2013-03-08 11:16 -0800
        Re: I cant understand this error when i click a link on my website info@cravendot.gr - 2013-03-08 11:16 -0800
      Re: I cant understand this error when i click a link on my website MRAB <python@mrabarnett.plus.com> - 2013-03-08 17:24 +0000
    Re: I cant understand this error when i click a link on my website Νίκος Γκρ33κ <nikos.gr33k@gmail.com> - 2013-03-08 08:50 -0800

csiph-web