Problem passing parameters to a Python Script
I'm passing some paramters from an HTML form to a python script. I'm having trouble determining exactly which parameter is/isn't being passed to a python script. I get an error message saying "Zope Error" "Resource not found" along with a few troubleshooting suggestions -- but nothing else. Yes, I do know what the form is passing, and yes it does jive with the parameter list. Is something else going on? Is there a way to determine which parameter is causing the problem (i.e., get a more descriptive error message)? TIA, Ron
Hi Ron, first you have to have Zope started with the -D parameter. Then there is a very useful product called ZDebug which gives you a much better error description when something goes astray in dtml. Robert ----- Original Message ----- From: <complaw@hal-pc.org> To: <zope@zope.org> Sent: Saturday, September 29, 2001 2:24 AM Subject: [Zope] Problem passing parameters to a Python Script
I'm passing some paramters from an HTML form to a python script.
I'm having trouble determining exactly which parameter is/isn't being passed to a python script. I get an error message saying "Zope Error" "Resource not found" along with a few troubleshooting suggestions -- but nothing else.
Yes, I do know what the form is passing, and yes it does jive with the parameter list. Is something else going on? Is there a way to determine which parameter is causing the problem (i.e., get a more descriptive error message)?
TIA,
Ron
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
ZopeList: I am running this: Zope 2.3.3 (binary release, python 1.5.2, linux2-x86) Python 1.5.2 (#10, Dec 6 1999, 12:16:27) [GCC 2.7.2.3] On RedHat 7.1 Everything is stable for many months until yesterday: I get this traceback on start. Traceback (innermost last): File /home/rlanham/zope23/z2.py, line 623, in ? File /home/rlanham/zope23/ZServer/HTTPServer.py, line 391, in __init__ File /home/rlanham/zope23/ZServer/medusa/http_server.py, line 550, in __init__error: host not found So I comment line 550 of http_server.py: ip = socket.gethostbyname (socket.gethostname()) and hard code my ip: ip = "xxx.254.xx..xx" Zope starts up now, that's good, but can anyone tell me what happened here? TIA, Richard
Richard Lanham writes:
ZopeList: Everything is stable for many months until yesterday: I get this traceback on start.
Traceback (innermost last): File /home/rlanham/zope23/z2.py, line 623, in ? File /home/rlanham/zope23/ZServer/HTTPServer.py, line 391, in __init__ File /home/rlanham/zope23/ZServer/medusa/http_server.py, line 550, in __init__error: host not found
So I comment line 550 of http_server.py: ip = socket.gethostbyname (socket.gethostname()) Seems, you DNS service no longer recognizes your host name....
Dieter
Yea, I guess it was isp problem. it's manhattan here, problems. But things cleared up and I put it back the way it was, but I noticed that it was much slower starting, so I put it back to the workaround.
From what you say, is this line of http_server.py (550) looking for a DNS server, which is unnecessary cause I have fixed IP?
Starts faster, I wonder if it is running faster too? Anyway, seems to work either way, I'm not too picky. Thanks, Richard On Sunday 30 September 2001 05:54 pm, Dieter Maurer wrote:
Richard Lanham writes:
ZopeList: Everything is stable for many months until yesterday: I get this traceback on start.
Traceback (innermost last): File /home/rlanham/zope23/z2.py, line 623, in ? File /home/rlanham/zope23/ZServer/HTTPServer.py, line 391, in __init__ File /home/rlanham/zope23/ZServer/medusa/http_server.py, line 550, in __init__error: host not found
So I comment line 550 of http_server.py: ip = socket.gethostbyname (socket.gethostname())
Seems, you DNS service no longer recognizes your host name....
Dieter
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (4)
-
complaw@hal-pc.org -
Dieter Maurer -
Richard Lanham -
Robert Rottermann