[Python] Recupero parametro GET da url

Zanon Samuele webs86 a gmail.com
Mar 7 Ott 2008 10:02:47 CEST


non  quello l'errore comunque... li ho fatto io un'errore scrivendo in
python una cosa di php... ma l'errore resta... ed  questo che vedo dal log:

[Tue Oct 07 00:57:14 2008] [error] [client 79.28.248.123] Traceback (most
recent call last):, referer: http://dominio.net/ordini/index.php?ord_id=40
[Tue Oct 07 00:57:14 2008] [error] [client 79.28.248.123]   File
"stampa_ordine.py", line 9, in ?, referer:
http://dominio.net/ordini/index.php?ord_id=40
[Tue Oct 07 00:57:14 2008] [error] [client 79.28.248.123]     from
reportlab.platypus import *, referer:
http://dominio.net/ordini/index.php?ord_id=40
[Tue Oct 07 00:57:14 2008] [error] [client 79.28.248.123] ImportError: No
module named reportlab.platypus, referer:
http://dominio.net/ordini/index.php?ord_id=40
[Tue Oct 07 00:57:14 2008] [error] [client 79.28.248.123] Premature end of
script headers: stampa_ordine.py, referer:
http://dominio.net/ordini/index.php?ord_id=40
[Tue Oct 07 00:57:14 2008] [error] [client 79.28.248.123] File does not
exist: /home/user/dominio.net/internal_error.html, referer:
http://dominio.net/ordini/index.php?ord_id=40


2008/10/7 Lawrence Oluyede <l.oluyede a gmail.com>

> On Tue, Oct 7, 2008 at 9:55 AM, Zanon Samuele <webs86 a gmail.com> wrote:
> > eccolo:
> >
> > [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123]   File
> > "stampa_ordine.py", line 174, referer:
> > http://dominio.net/ordini/index.php?ord_id=40
> > [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123]     print '<a
> > href="'. output_filename '">PDF ORDINE</a>', referer:
> > http://dominio.net/ordini/index.php?ord_id=40
> > [Tue Oct 07 00:53:46 2008] [error] [client
> > 79.28.248.123]
> ^,
> > referer: http://dominio.net/ordini/index.php?ord_id=40
> > [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123] SyntaxError:
> > invalid syntax, referer: http://dominio.net/ordini/index.php?ord_id=40
> > [Tue Oct 07 00:53:46 2008] [error] [client 79.28.248.123] Premature end
> of
> > script headers: stampa_ordine.py, referer:
> > http://dominio.net/ordini/index.php?ord_id=40
>
> Abbastanza chiaro.
>
> print '<a href="'. output_filename '">PDF ORDINE</a>'
>
> Gli apici dopo =" sono illegali. Devi farne l'escape:
>
> print '<a href="\'. output_filename\'">PDF ORDINE</a>'
>
> --
> Lawrence, stacktrace.it - oluyede.org - neropercaso.it
> "It is difficult to get a man to understand
> something when his salary depends on not
> understanding it" - Upton Sinclair
> _______________________________________________
> Python mailing list
> Python a lists.python.it
> http://lists.python.it/mailman/listinfo/python
>



-- 
Zanon Samuele
mailto:webs86 a gmail.com
-------------- parte successiva --------------
Un allegato HTML  stato rimosso...
URL: http://lists.python.it/pipermail/python/attachments/20081007/70b85505/attachment.htm 


Maggiori informazioni sulla lista Python