Re: Re: Re: Re: Problems with wsgi Python3

2010-09-30 Thread hidura
Now, i' m sure that the system it's uploading the file but still it's give  
me empty the information. I am considerating 2 crazy solutions what i want  
to share with you for listen your opinions:


1) Consist in translate to Python2.5 the area what receives the request and  
execute the area what begin the process with Python3.1 and wait to the  
other finish with the processing to read a file in where the other part  
write the result.
2) It's less crazy than the 1 and consist in strip the  
cpEnv["wsgi.input"].read() and take the information and begin the reading  
line by line in order to insert the information in the corresponding areas.


Waiting for your opinions and very happy with your help.

Diego Hidalgo.

On Sep 30, 2010 11:56pm, hid...@gmail.com wrote:
Ppl, thankyou Diez and Thomas for your answers i did it, but it present  
me a problem with the solution what you give me Thomas this is the code:



ValueError: Invalid boundary in multipart form: ''



On Sep 30, 2010 6:16pm, hid...@gmail.com wrote:
> I still receive nothing, here it's the code of the form maybe there  
it's the problem:

>
>
>
>
>
>
>
>
> On Sep 30, 2010 4:55pm, "Diez B. Roggisch" de...@web.de> wrote:
> > Thomas Jollans tho...@jollybox.de> writes:
> >
> >
> >
> > > On Thursday 30 September 2010, it occurred to hid...@gmail.com to  
exclaim:

> >
> > >> What mean this
> >
> > >> -743346150198628700241600224--\r?
> >
> > >
> >
> > > it looks like a MIME boundary. In this context most likely from a
> >
> > > multipart/form-data transmission.
> >
> >
> >
> > yep, as one can see in the headers below.
> >
> >
> >
> > Additonally, it looks to me as if the form you are submitting is
> >
> > empty. The content-length of just 61 matches barely the boundary.
> >
> >
> >
> > Use something like
> >
> >
> >
> > pdict = cgi.parse_header(environ["CONTENT_TYPE"])[1]
> >
> > cgi.parse_multipart(environ["wsgi.input"], pdict)
> >
> >
> >
> > to properly parse the request. But then of course actually upload
> >
> > something.
> >
> >
> >
> > Diez
> >
> >
> >
> >
> >
> > >
> >
> > >>
> >
> > >> On Sep 30, 2010 2:38pm, hid...@gmail.com wrote:
> >
> > >> > Sorry, for the last mail, here it's what you asked:
> >
> > >> >
> >
> > >> > {'CONTENT_LENGTH': '61',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'CONTENT_TYPE':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'multipart/form-data;
> >
> > >> >  
boundary=---8905735096173894531259794847',

> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'DOCUMENT_ROOT':
> >
> > >> > [Thu Sep 30 13:35:07 2010]  
[error] '/home/hidura/webapps/karinapp/Suite',

> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'GATEWAY_INTERFACE':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'CGI/1.1',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT':
> >
> > >> > [Thu Sep 30 13:35:07 2010]
> >
> > >> > [error]
> >
> > >>  
> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', [Thu

> >
> > >> > Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_CHARSET':
> >
> > >> > [Thu Sep 30 13:35:07 2010]  
[error] 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',

> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_ENCODING':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'gzip,deflate',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_LANGUAGE':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'es-do,en-us;q=0.7,en;q=0.3',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_CONNECTION':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'close',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_HOST':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_REFERER':
> >
> > >> > [Thu Sep 30 13:35:07 2010]
> >
> > >> > [error] 'http://hidura.webfactional.com/?md=btdump',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_USER_AGENT':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'Mozilla/5.0 (X11; U; Linux  
x86_64;

> >
> > >> > en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid)  
Firefox/3.6.10',

> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_X_FORWARDED_FOR':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] '190.94.122.180',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'PATH_INFO':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] '',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'QUERY_STRING':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] '',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_ADDR':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_PORT':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] '58742',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_METHOD':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'POST',
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_URI':
> >
> > >> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
> >
> > >> > [Thu Sep 30 13:35:07 2010

Re: Re: Re: Problems with wsgi Python3

2010-09-30 Thread hidura
Ppl, thankyou Diez and Thomas for your answers i did it, but it present me  
a problem with the solution what you give me Thomas this is the code:


ValueError: Invalid boundary in multipart form: ''

On Sep 30, 2010 6:16pm, hid...@gmail.com wrote:
I still receive nothing, here it's the code of the form maybe there it's  
the problem:










On Sep 30, 2010 4:55pm, "Diez B. Roggisch" de...@web.de> wrote:
> Thomas Jollans tho...@jollybox.de> writes:
>
>
>
> > On Thursday 30 September 2010, it occurred to hid...@gmail.com to  
exclaim:

>
> >> What mean this
>
> >> -743346150198628700241600224--\r?
>
> >
>
> > it looks like a MIME boundary. In this context most likely from a
>
> > multipart/form-data transmission.
>
>
>
> yep, as one can see in the headers below.
>
>
>
> Additonally, it looks to me as if the form you are submitting is
>
> empty. The content-length of just 61 matches barely the boundary.
>
>
>
> Use something like
>
>
>
> pdict = cgi.parse_header(environ["CONTENT_TYPE"])[1]
>
> cgi.parse_multipart(environ["wsgi.input"], pdict)
>
>
>
> to properly parse the request. But then of course actually upload
>
> something.
>
>
>
> Diez
>
>
>
>
>
> >
>
> >>
>
> >> On Sep 30, 2010 2:38pm, hid...@gmail.com wrote:
>
> >> > Sorry, for the last mail, here it's what you asked:
>
> >> >
>
> >> > {'CONTENT_LENGTH': '61',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'CONTENT_TYPE':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'multipart/form-data;
>
> >> > boundary=---8905735096173894531259794847',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'DOCUMENT_ROOT':
>
> >> > [Thu Sep 30 13:35:07 2010]  
[error] '/home/hidura/webapps/karinapp/Suite',

>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'GATEWAY_INTERFACE':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'CGI/1.1',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT':
>
> >> > [Thu Sep 30 13:35:07 2010]
>
> >> > [error]
>
> >> > 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',  
[Thu

>
> >> > Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_CHARSET':
>
> >> > [Thu Sep 30 13:35:07 2010]  
[error] 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',

>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_ENCODING':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'gzip,deflate',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_LANGUAGE':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'es-do,en-us;q=0.7,en;q=0.3',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_CONNECTION':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'close',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_HOST':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_REFERER':
>
> >> > [Thu Sep 30 13:35:07 2010]
>
> >> > [error] 'http://hidura.webfactional.com/?md=btdump',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_USER_AGENT':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'Mozilla/5.0 (X11; U; Linux  
x86_64;

>
> >> > en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid)  
Firefox/3.6.10',

>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_X_FORWARDED_FOR':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '190.94.122.180',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'PATH_INFO':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'QUERY_STRING':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_ADDR':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_PORT':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '58742',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_METHOD':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'POST',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_URI':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_FILENAME':
>
> >> > [Thu Sep 30 13:35:07 2010]
>
> >> > [error] '/home/hidura/webapps/karinapp/Suite/Gate.py',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_NAME':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADDR':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADMIN':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '[no address given]',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_NAME':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PORT':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '80',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PROTOCOL':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP/1.0',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SIGNATURE':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] '',
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SOFTWARE':
>
> >> > [Thu Sep 30 13:35:07 2010] [error] 'Apache/2.2.15 (Unix)

Re: Re: Problems with wsgi Python3

2010-09-30 Thread hidura
I still receive nothing, here it's the code of the form maybe there it's  
the problem:


name="input" target="hidden-frm">







On Sep 30, 2010 4:55pm, "Diez B. Roggisch"  wrote:

Thomas Jollans tho...@jollybox.de> writes:




> On Thursday 30 September 2010, it occurred to hid...@gmail.com to  
exclaim:



>> What mean this



>> -743346150198628700241600224--\r?



>



> it looks like a MIME boundary. In this context most likely from a



> multipart/form-data transmission.





yep, as one can see in the headers below.





Additonally, it looks to me as if the form you are submitting is



empty. The content-length of just 61 matches barely the boundary.





Use something like





pdict = cgi.parse_header(environ["CONTENT_TYPE"])[1]



cgi.parse_multipart(environ["wsgi.input"], pdict)





to properly parse the request. But then of course actually upload



something.





Diez







>



>>



>> On Sep 30, 2010 2:38pm, hid...@gmail.com wrote:



>> > Sorry, for the last mail, here it's what you asked:



>> >



>> > {'CONTENT_LENGTH': '61',



>> > [Thu Sep 30 13:35:07 2010] [error] 'CONTENT_TYPE':



>> > [Thu Sep 30 13:35:07 2010] [error] 'multipart/form-data;



>> > boundary=---8905735096173894531259794847',



>> > [Thu Sep 30 13:35:07 2010] [error] 'DOCUMENT_ROOT':


>> > [Thu Sep 30 13:35:07 2010]  
[error] '/home/hidura/webapps/karinapp/Suite',



>> > [Thu Sep 30 13:35:07 2010] [error] 'GATEWAY_INTERFACE':



>> > [Thu Sep 30 13:35:07 2010] [error] 'CGI/1.1',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT':



>> > [Thu Sep 30 13:35:07 2010]



>> > [error]


>> > 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',  
[Thu



>> > Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_CHARSET':



>> > [Thu Sep 30 13:35:07 2010] [error] 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_ENCODING':



>> > [Thu Sep 30 13:35:07 2010] [error] 'gzip,deflate',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_LANGUAGE':



>> > [Thu Sep 30 13:35:07 2010] [error] 'es-do,en-us;q=0.7,en;q=0.3',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_CONNECTION':



>> > [Thu Sep 30 13:35:07 2010] [error] 'close',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_HOST':



>> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_REFERER':



>> > [Thu Sep 30 13:35:07 2010]



>> > [error] 'http://hidura.webfactional.com/?md=btdump',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_USER_AGENT':


>> > [Thu Sep 30 13:35:07 2010] [error] 'Mozilla/5.0 (X11; U; Linux  
x86_64;


>> > en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid)  
Firefox/3.6.10',



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_X_FORWARDED_FOR':



>> > [Thu Sep 30 13:35:07 2010] [error] '190.94.122.180',



>> > [Thu Sep 30 13:35:07 2010] [error] 'PATH_INFO':



>> > [Thu Sep 30 13:35:07 2010] [error] '',



>> > [Thu Sep 30 13:35:07 2010] [error] 'QUERY_STRING':



>> > [Thu Sep 30 13:35:07 2010] [error] '',



>> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_ADDR':



>> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',



>> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_PORT':



>> > [Thu Sep 30 13:35:07 2010] [error] '58742',



>> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_METHOD':



>> > [Thu Sep 30 13:35:07 2010] [error] 'POST',



>> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_URI':



>> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_FILENAME':



>> > [Thu Sep 30 13:35:07 2010]



>> > [error] '/home/hidura/webapps/karinapp/Suite/Gate.py',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_NAME':



>> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADDR':



>> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADMIN':



>> > [Thu Sep 30 13:35:07 2010] [error] '[no address given]',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_NAME':



>> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PORT':



>> > [Thu Sep 30 13:35:07 2010] [error] '80',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PROTOCOL':



>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP/1.0',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SIGNATURE':



>> > [Thu Sep 30 13:35:07 2010] [error] '',



>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SOFTWARE':



>> > [Thu Sep 30 13:35:07 2010] [error] 'Apache/2.2.15 (Unix) mod_wsgi/3.3



>> > Python/3.1',



>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.application_group':



>> > [Thu Sep 30 13:35:07 2010] [error] 'web152.webfaction.com|/gate.py',



>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.callable_object':



>> > [Thu Sep 30 13:35:07 2010] [error] 'application',



>> > [Thu Sep 30 13:35:07

Re: Problems with wsgi Python3

2010-09-30 Thread Diez B. Roggisch
Thomas Jollans  writes:

> On Thursday 30 September 2010, it occurred to hid...@gmail.com to exclaim:
>> What mean this
>> -743346150198628700241600224--\r?
>
> it looks like a MIME boundary. In this context most likely from a 
> multipart/form-data transmission.

yep, as one can see in the headers below.

Additonally, it looks to me as if the form you are submitting is
empty. The content-length of just 61 matches barely the boundary.

Use something like

  pdict = cgi.parse_header(environ["CONTENT_TYPE"])[1]
  cgi.parse_multipart(environ["wsgi.input"], pdict)

to properly parse the request. But then of course actually upload
something.

Diez


>
>> 
>> On Sep 30, 2010 2:38pm, hid...@gmail.com wrote:
>> > Sorry, for the last mail, here it's what you asked:
>> > 
>> > {'CONTENT_LENGTH': '61',
>> > [Thu Sep 30 13:35:07 2010] [error] 'CONTENT_TYPE':
>> > [Thu Sep 30 13:35:07 2010] [error] 'multipart/form-data;
>> > boundary=---8905735096173894531259794847',
>> > [Thu Sep 30 13:35:07 2010] [error] 'DOCUMENT_ROOT':
>> > [Thu Sep 30 13:35:07 2010] [error] '/home/hidura/webapps/karinapp/Suite',
>> > [Thu Sep 30 13:35:07 2010] [error] 'GATEWAY_INTERFACE':
>> > [Thu Sep 30 13:35:07 2010] [error] 'CGI/1.1',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT':
>> > [Thu Sep 30 13:35:07 2010]
>> > [error]
>> > 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', [Thu
>> > Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_CHARSET':
>> > [Thu Sep 30 13:35:07 2010] [error] 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_ENCODING':
>> > [Thu Sep 30 13:35:07 2010] [error] 'gzip,deflate',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_LANGUAGE':
>> > [Thu Sep 30 13:35:07 2010] [error] 'es-do,en-us;q=0.7,en;q=0.3',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_CONNECTION':
>> > [Thu Sep 30 13:35:07 2010] [error] 'close',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_HOST':
>> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_REFERER':
>> > [Thu Sep 30 13:35:07 2010]
>> > [error] 'http://hidura.webfactional.com/?md=btdump',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_USER_AGENT':
>> > [Thu Sep 30 13:35:07 2010] [error] 'Mozilla/5.0 (X11; U; Linux x86_64;
>> > en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10',
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_X_FORWARDED_FOR':
>> > [Thu Sep 30 13:35:07 2010] [error] '190.94.122.180',
>> > [Thu Sep 30 13:35:07 2010] [error] 'PATH_INFO':
>> > [Thu Sep 30 13:35:07 2010] [error] '',
>> > [Thu Sep 30 13:35:07 2010] [error] 'QUERY_STRING':
>> > [Thu Sep 30 13:35:07 2010] [error] '',
>> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_ADDR':
>> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
>> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_PORT':
>> > [Thu Sep 30 13:35:07 2010] [error] '58742',
>> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_METHOD':
>> > [Thu Sep 30 13:35:07 2010] [error] 'POST',
>> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_URI':
>> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_FILENAME':
>> > [Thu Sep 30 13:35:07 2010]
>> > [error] '/home/hidura/webapps/karinapp/Suite/Gate.py',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_NAME':
>> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADDR':
>> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADMIN':
>> > [Thu Sep 30 13:35:07 2010] [error] '[no address given]',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_NAME':
>> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PORT':
>> > [Thu Sep 30 13:35:07 2010] [error] '80',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PROTOCOL':
>> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP/1.0',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SIGNATURE':
>> > [Thu Sep 30 13:35:07 2010] [error] '',
>> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SOFTWARE':
>> > [Thu Sep 30 13:35:07 2010] [error] 'Apache/2.2.15 (Unix) mod_wsgi/3.3
>> > Python/3.1',
>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.application_group':
>> > [Thu Sep 30 13:35:07 2010] [error] 'web152.webfaction.com|/gate.py',
>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.callable_object':
>> > [Thu Sep 30 13:35:07 2010] [error] 'application',
>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.handler_script':
>> > [Thu Sep 30 13:35:07 2010] [error] '',
>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.input_chunked':
>> > [Thu Sep 30 13:35:07 2010] [error] '0',
>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_host':
>> > [Thu Sep 30 13:35:07 2010] [error] '',
>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_port':
>> > [Thu Sep 30 13:35:07 2010] [error] '51543',
>> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsg

Re: Problems with wsgi Python3

2010-09-30 Thread Thomas Jollans
On Thursday 30 September 2010, it occurred to hid...@gmail.com to exclaim:
> What mean this
> -743346150198628700241600224--\r?

it looks like a MIME boundary. In this context most likely from a 
multipart/form-data transmission.

> 
> On Sep 30, 2010 2:38pm, hid...@gmail.com wrote:
> > Sorry, for the last mail, here it's what you asked:
> > 
> > {'CONTENT_LENGTH': '61',
> > [Thu Sep 30 13:35:07 2010] [error] 'CONTENT_TYPE':
> > [Thu Sep 30 13:35:07 2010] [error] 'multipart/form-data;
> > boundary=---8905735096173894531259794847',
> > [Thu Sep 30 13:35:07 2010] [error] 'DOCUMENT_ROOT':
> > [Thu Sep 30 13:35:07 2010] [error] '/home/hidura/webapps/karinapp/Suite',
> > [Thu Sep 30 13:35:07 2010] [error] 'GATEWAY_INTERFACE':
> > [Thu Sep 30 13:35:07 2010] [error] 'CGI/1.1',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT':
> > [Thu Sep 30 13:35:07 2010]
> > [error]
> > 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', [Thu
> > Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_CHARSET':
> > [Thu Sep 30 13:35:07 2010] [error] 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_ENCODING':
> > [Thu Sep 30 13:35:07 2010] [error] 'gzip,deflate',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_LANGUAGE':
> > [Thu Sep 30 13:35:07 2010] [error] 'es-do,en-us;q=0.7,en;q=0.3',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_CONNECTION':
> > [Thu Sep 30 13:35:07 2010] [error] 'close',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_HOST':
> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_REFERER':
> > [Thu Sep 30 13:35:07 2010]
> > [error] 'http://hidura.webfactional.com/?md=btdump',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_USER_AGENT':
> > [Thu Sep 30 13:35:07 2010] [error] 'Mozilla/5.0 (X11; U; Linux x86_64;
> > en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10',
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP_X_FORWARDED_FOR':
> > [Thu Sep 30 13:35:07 2010] [error] '190.94.122.180',
> > [Thu Sep 30 13:35:07 2010] [error] 'PATH_INFO':
> > [Thu Sep 30 13:35:07 2010] [error] '',
> > [Thu Sep 30 13:35:07 2010] [error] 'QUERY_STRING':
> > [Thu Sep 30 13:35:07 2010] [error] '',
> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_ADDR':
> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
> > [Thu Sep 30 13:35:07 2010] [error] 'REMOTE_PORT':
> > [Thu Sep 30 13:35:07 2010] [error] '58742',
> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_METHOD':
> > [Thu Sep 30 13:35:07 2010] [error] 'POST',
> > [Thu Sep 30 13:35:07 2010] [error] 'REQUEST_URI':
> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_FILENAME':
> > [Thu Sep 30 13:35:07 2010]
> > [error] '/home/hidura/webapps/karinapp/Suite/Gate.py',
> > [Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_NAME':
> > [Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADDR':
> > [Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADMIN':
> > [Thu Sep 30 13:35:07 2010] [error] '[no address given]',
> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_NAME':
> > [Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PORT':
> > [Thu Sep 30 13:35:07 2010] [error] '80',
> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_PROTOCOL':
> > [Thu Sep 30 13:35:07 2010] [error] 'HTTP/1.0',
> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SIGNATURE':
> > [Thu Sep 30 13:35:07 2010] [error] '',
> > [Thu Sep 30 13:35:07 2010] [error] 'SERVER_SOFTWARE':
> > [Thu Sep 30 13:35:07 2010] [error] 'Apache/2.2.15 (Unix) mod_wsgi/3.3
> > Python/3.1',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.application_group':
> > [Thu Sep 30 13:35:07 2010] [error] 'web152.webfaction.com|/gate.py',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.callable_object':
> > [Thu Sep 30 13:35:07 2010] [error] 'application',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.handler_script':
> > [Thu Sep 30 13:35:07 2010] [error] '',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.input_chunked':
> > [Thu Sep 30 13:35:07 2010] [error] '0',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_host':
> > [Thu Sep 30 13:35:07 2010] [error] '',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_port':
> > [Thu Sep 30 13:35:07 2010] [error] '51543',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.process_group':
> > [Thu Sep 30 13:35:07 2010] [error] '',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.request_handler':
> > [Thu Sep 30 13:35:07 2010] [error] 'wsgi-script',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.script_reloading':
> > [Thu Sep 30 13:35:07 2010] [error] '1',
> > [Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.version':
> > [Thu Sep 30 13:35:07 2010] [error] (3, 3),
> > [Thu Sep 30 13:35:07 2010] [error] 'wsgi.errors':
> > [Thu Sep 30 13:35:07 2010] [error] ,
> > [Thu

Re: Re: Re: Problems with wsgi Python3

2010-09-30 Thread hidura

What mean this -743346150198628700241600224--\r?

On Sep 30, 2010 2:38pm, hid...@gmail.com wrote:

Sorry, for the last mail, here it's what you asked:



{'CONTENT_LENGTH': '61',
[Thu Sep 30 13:35:07 2010] [error] 'CONTENT_TYPE':
[Thu Sep 30 13:35:07 2010] [error] 'multipart/form-data;  
boundary=---8905735096173894531259794847',

[Thu Sep 30 13:35:07 2010] [error] 'DOCUMENT_ROOT':
[Thu Sep 30 13:35:07 2010] [error] '/home/hidura/webapps/karinapp/Suite',
[Thu Sep 30 13:35:07 2010] [error] 'GATEWAY_INTERFACE':
[Thu Sep 30 13:35:07 2010] [error] 'CGI/1.1',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT':
[Thu Sep 30 13:35:07 2010]  
[error] 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',

[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_CHARSET':
[Thu Sep 30 13:35:07 2010] [error] 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_ENCODING':
[Thu Sep 30 13:35:07 2010] [error] 'gzip,deflate',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_LANGUAGE':
[Thu Sep 30 13:35:07 2010] [error] 'es-do,en-us;q=0.7,en;q=0.3',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_CONNECTION':
[Thu Sep 30 13:35:07 2010] [error] 'close',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_HOST':
[Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_REFERER':
[Thu Sep 30 13:35:07 2010]  
[error] 'http://hidura.webfactional.com/?md=btdump',

[Thu Sep 30 13:35:07 2010] [error] 'HTTP_USER_AGENT':
[Thu Sep 30 13:35:07 2010] [error] 'Mozilla/5.0 (X11; U; Linux x86_64;  
en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10',

[Thu Sep 30 13:35:07 2010] [error] 'HTTP_X_FORWARDED_FOR':
[Thu Sep 30 13:35:07 2010] [error] '190.94.122.180',
[Thu Sep 30 13:35:07 2010] [error] 'PATH_INFO':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'QUERY_STRING':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'REMOTE_ADDR':
[Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
[Thu Sep 30 13:35:07 2010] [error] 'REMOTE_PORT':
[Thu Sep 30 13:35:07 2010] [error] '58742',
[Thu Sep 30 13:35:07 2010] [error] 'REQUEST_METHOD':
[Thu Sep 30 13:35:07 2010] [error] 'POST',
[Thu Sep 30 13:35:07 2010] [error] 'REQUEST_URI':
[Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
[Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_FILENAME':
[Thu Sep 30 13:35:07 2010]  
[error] '/home/hidura/webapps/karinapp/Suite/Gate.py',

[Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_NAME':
[Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADDR':
[Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADMIN':
[Thu Sep 30 13:35:07 2010] [error] '[no address given]',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_NAME':
[Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_PORT':
[Thu Sep 30 13:35:07 2010] [error] '80',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_PROTOCOL':
[Thu Sep 30 13:35:07 2010] [error] 'HTTP/1.0',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_SIGNATURE':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_SOFTWARE':
[Thu Sep 30 13:35:07 2010] [error] 'Apache/2.2.15 (Unix) mod_wsgi/3.3  
Python/3.1',

[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.application_group':
[Thu Sep 30 13:35:07 2010] [error] 'web152.webfaction.com|/gate.py',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.callable_object':
[Thu Sep 30 13:35:07 2010] [error] 'application',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.handler_script':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.input_chunked':
[Thu Sep 30 13:35:07 2010] [error] '0',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_host':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_port':
[Thu Sep 30 13:35:07 2010] [error] '51543',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.process_group':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.request_handler':
[Thu Sep 30 13:35:07 2010] [error] 'wsgi-script',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.script_reloading':
[Thu Sep 30 13:35:07 2010] [error] '1',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.version':
[Thu Sep 30 13:35:07 2010] [error] (3, 3),
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.errors':
[Thu Sep 30 13:35:07 2010] [error] ,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.file_wrapper':
[Thu Sep 30 13:35:07 2010] [error] ,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.input':
[Thu Sep 30 13:35:07 2010] [error] ,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.multiprocess':
[Thu Sep 30 13:35:07 2010] [error] False,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.multithread':
[Thu Sep 30 13:35:07 2010] [error] True,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.run_once':
[Thu Sep 30 13:35:07 2010] [error] False,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.url_sche

Re: Re: Problems with wsgi Python3

2010-09-30 Thread hidura

Sorry, for the last mail, here it's what you asked:

{'CONTENT_LENGTH': '61',
[Thu Sep 30 13:35:07 2010] [error] 'CONTENT_TYPE':
[Thu Sep 30 13:35:07 2010] [error] 'multipart/form-data;  
boundary=---8905735096173894531259794847',

[Thu Sep 30 13:35:07 2010] [error] 'DOCUMENT_ROOT':
[Thu Sep 30 13:35:07 2010] [error] '/home/hidura/webapps/karinapp/Suite',
[Thu Sep 30 13:35:07 2010] [error] 'GATEWAY_INTERFACE':
[Thu Sep 30 13:35:07 2010] [error] 'CGI/1.1',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT':
[Thu Sep 30 13:35:07 2010]  
[error] 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',

[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_CHARSET':
[Thu Sep 30 13:35:07 2010] [error] 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_ENCODING':
[Thu Sep 30 13:35:07 2010] [error] 'gzip,deflate',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_ACCEPT_LANGUAGE':
[Thu Sep 30 13:35:07 2010] [error] 'es-do,en-us;q=0.7,en;q=0.3',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_CONNECTION':
[Thu Sep 30 13:35:07 2010] [error] 'close',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_HOST':
[Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
[Thu Sep 30 13:35:07 2010] [error] 'HTTP_REFERER':
[Thu Sep 30 13:35:07 2010]  
[error] 'http://hidura.webfactional.com/?md=btdump',

[Thu Sep 30 13:35:07 2010] [error] 'HTTP_USER_AGENT':
[Thu Sep 30 13:35:07 2010] [error] 'Mozilla/5.0 (X11; U; Linux x86_64;  
en-US; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10',

[Thu Sep 30 13:35:07 2010] [error] 'HTTP_X_FORWARDED_FOR':
[Thu Sep 30 13:35:07 2010] [error] '190.94.122.180',
[Thu Sep 30 13:35:07 2010] [error] 'PATH_INFO':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'QUERY_STRING':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'REMOTE_ADDR':
[Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
[Thu Sep 30 13:35:07 2010] [error] 'REMOTE_PORT':
[Thu Sep 30 13:35:07 2010] [error] '58742',
[Thu Sep 30 13:35:07 2010] [error] 'REQUEST_METHOD':
[Thu Sep 30 13:35:07 2010] [error] 'POST',
[Thu Sep 30 13:35:07 2010] [error] 'REQUEST_URI':
[Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
[Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_FILENAME':
[Thu Sep 30 13:35:07 2010]  
[error] '/home/hidura/webapps/karinapp/Suite/Gate.py',

[Thu Sep 30 13:35:07 2010] [error] 'SCRIPT_NAME':
[Thu Sep 30 13:35:07 2010] [error] '/Gate.py',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADDR':
[Thu Sep 30 13:35:07 2010] [error] '127.0.0.1',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_ADMIN':
[Thu Sep 30 13:35:07 2010] [error] '[no address given]',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_NAME':
[Thu Sep 30 13:35:07 2010] [error] 'hidura.webfactional.com',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_PORT':
[Thu Sep 30 13:35:07 2010] [error] '80',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_PROTOCOL':
[Thu Sep 30 13:35:07 2010] [error] 'HTTP/1.0',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_SIGNATURE':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'SERVER_SOFTWARE':
[Thu Sep 30 13:35:07 2010] [error] 'Apache/2.2.15 (Unix) mod_wsgi/3.3  
Python/3.1',

[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.application_group':
[Thu Sep 30 13:35:07 2010] [error] 'web152.webfaction.com|/gate.py',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.callable_object':
[Thu Sep 30 13:35:07 2010] [error] 'application',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.handler_script':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.input_chunked':
[Thu Sep 30 13:35:07 2010] [error] '0',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_host':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.listener_port':
[Thu Sep 30 13:35:07 2010] [error] '51543',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.process_group':
[Thu Sep 30 13:35:07 2010] [error] '',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.request_handler':
[Thu Sep 30 13:35:07 2010] [error] 'wsgi-script',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.script_reloading':
[Thu Sep 30 13:35:07 2010] [error] '1',
[Thu Sep 30 13:35:07 2010] [error] 'mod_wsgi.version':
[Thu Sep 30 13:35:07 2010] [error] (3, 3),
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.errors':
[Thu Sep 30 13:35:07 2010] [error] <_io.TextIOWrapper encoding='utf-8'>,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.file_wrapper':
[Thu Sep 30 13:35:07 2010] [error] mod_wsgi.Adapter object at 0xb7b97218>,

[Thu Sep 30 13:35:07 2010] [error] 'wsgi.input':
[Thu Sep 30 13:35:07 2010] [error] ,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.multiprocess':
[Thu Sep 30 13:35:07 2010] [error] False,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.multithread':
[Thu Sep 30 13:35:07 2010] [error] True,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.run_once':
[Thu Sep 30 13:35:07 2010] [error] False,
[Thu Sep 30 13:35:07 2010] [error] 'wsgi.url_scheme':
[Thu Sep 30 13:35:07 2010] [error] 'http',
[Thu S

Re: Problems with wsgi Python3

2010-09-30 Thread Diez B. Roggisch
hid...@gmail.com writes:

> Hello list, i had seriously troubles with the connection between a form and 
> the
> wsgi, i' ve made an application on Python3 and was running perfectly but when 
> i
> try to use the  to pass the data this can't be see on the server, so 
> what
> is your recommendation?, i am open to all the ideas less leave to Python2 i
> can't all the project was write on Python3, i was looking into the PEP 444
> proposal too.
>
> Here is the code what i used to take the data:
>
> print(urllib.parse.parse_qs(environ['wsgi.input'].read(int(environ
> ['CONTENT_LENGTH'])).decode()))

What is the ouptut of this? What does

import pprint 
pprint.pprint(environ)

give you?


>
> and here it's what the os.environ.item() prints to me:

That's irrelevant. The WSGI-environ is what is needed.

Diez
-- 
http://mail.python.org/mailman/listinfo/python-list


Problems with wsgi Python3

2010-09-30 Thread hidura
Hello list, i had seriously troubles with the connection between a form and  
the wsgi, i' ve made an application on Python3 and was running perfectly  
but when i try to use the  to pass the data this can't be see on the  
server, so what is your recommendation?, i am open to all the ideas less  
leave to Python2 i can't all the project was write on Python3, i was  
looking into the PEP 444 proposal too.


Here is the code what i used to take the data:

print(urllib.parse.parse_qs(environ['wsgi.input'].read(int(environ['CONTENT_LENGTH'])).decode()))

and here it's what the os.environ.item() prints to me:

('LESSOPEN', '|/usr/bin/lesspipe.sh %s')
('SSH_CLIENT', '190.94.122.180 38415 22')
('CVS_RSH', 'ssh')
('LOGNAME', 'hidura')
('INPUTRC', '/etc/inputrc')
('HOME', '/home/hidura')
('PATH', 
'/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin:/home/hidura/bin')
('LD_LIBRARY_PATH', '/home/hidura/webapps/karinapp/apache2/lib')
('LANG', 'en_US.UTF-8')
('TERM', 'xterm')
('SHELL', '/bin/bash')
('SHLVL', '3')
('G_BROKEN_FILENAMES', '1')
('HISTSIZE', '1000')
('_', '/home/hidura/webapps/karinapp/apache2/bin/httpd.worker')
('SSH_CONNECTION', '190.94.122.180 38415 174.121.79.178 22')
('SSH_TTY', '/dev/pts/5')
('HOSTNAME', 'web152.webfaction.com')
('PWD', '/home/hidura')
('MAIL', '/var/spool/mail/hidura')
('LS_COLORS', 
'no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:')
-110550484811701713451664404475--\r
Thanks, i am desperate.
-- 
http://mail.python.org/mailman/listinfo/python-list