dtml

Python: KeyError with form.getfirst

I have a dtml page, which calls a function, with this code: <dtml-var public_blast(form.getfirst('job_ID'))> But i get a key error? stating "KeyError: "public_blast(form.getfirst('job_ID'))" ". I can see the job_ID variable at the top of the page. So i know it is being passed to the URL. I cant see where im going wrong? ...

Python: Obtain a URL

Because I cant get this working: http://stackoverflow.com/questions/3250572/python-keyerror-with-form-getfirst I have an alternative option, I have a function in DTML which needs to obtain a URL: For example if the dtml webpage is located at www.blah.com/foo/foo2?variable=55 How would i obtain the URL of this page using a python...