Problems with wsgi Python3

hidura at gmail.com hidura at gmail.com
Thu Sep 30 11:33:01 EDT 2010


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 <form> 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:

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

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100930/9c2d8ff0/attachment.html>


More information about the Python-list mailing list