>
> 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:]
> >
>

>From this patch it looks like you're working with 0.5.1 and not the main CVS
trunk, right?  The code there has already been changed to this:

     uriEnd = string.split(uri[0], '/')[-1]
     uri[0] = './' + uriEnd + '/'


--
Robin Dunn
Software Craftsman
[EMAIL PROTECTED]       Java give you jitters?
http://wxPython.org      Relax with wxPython!





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

Reply via email to