Replying to my own message again...

I can get the result I want with this patch to the
handleDeficientDirectoryURL method of Application.py, but it adds an ugly
scriptname to my URL... The upside is it doesn't seem to break the rest of
Webware.

351c351,356
<   uri[0] = uri[0] + '/'
---
>   if not uri[0][-1] == '/':
>    uri[0] = uri[0] + '/'
>   else: # the script_name after the final slash should be used
>    script_name = transaction.request().environ()['SCRIPT_NAME']
>    uri[0] = uri[0] + script_name[string.rfind(script_name, '/')+1:]
>

I'd still be interested in a more elegant solution, and to find the cause of
this problem.

Regards,

David O'Callaghan


_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to