Re: [Zope] Python script URL
Do you mean (in other words) that you want to call the python script directly via the URL? I've wanted to do that myself and tried a few times. All attempts failed. First, just calling the URL would lend Zope to think that you wanted to call the script's index_html method. You really need to have something like a DTML Method call the script using the standard DTML call statement. Alternatively, you can use appropriate form tags (e.g., <FORM ACTION="my_cool_script" METHOD="post> <INPUT TYPE="submit" VALUE="Do it!"> </FORM>) I think the problem is that the request that you make via Zope simply to call an object via the URL doesn't provide the necessariy functionality to invoke a script. In short, the URL request is a "GET" rather than a "POST" operation. Zope experts may have a better explanation. Hope that helps. Ron
I have been playing around with existing Python scripts and have found that I need to determine the URL of the script itself. Actually what I need is the equivalent of the URLx construct for the http Request object that works with for the URL of the script.
My experience with Python is limited so I am probably missing something obvious -- can anybody provide a clue as to where I should start?
_______________________________________________ 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 (1)
-
complaw@hal-pc.org