[Zope] Python script URL

Dieter Maurer dieter@handshake.de
Fri, 7 Dec 2001 01:36:41 +0100


Brian Sullivan writes:
 > 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.

   url= script.absolute_url() # to get the URL

   # much more work to get the URLx parts -- do you really need them?

 > My experience with Python is limited so I am probably missing something
 > obvious -- can anybody provide a clue as to where I should start?
Change this. Python is easy. To be learned in a few days...

Look into a Python book, the Python language reference, the Python
library documentation...


Dieter