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

Date 2013-03-08 17:24 +0000
From MRAB <python@mrabarnett.plus.com>
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>
Newsgroups comp.lang.python
Message-ID <mailman.3092.1362763479.2939.python-list@python.org> (permalink)

Show all headers | 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