Jonothan Farr writes:
 > That's a good point. Although, your patch actually does the backslash
 > replacement regardless of whether the drive specification is present.
 > 
 > How about this:
 > 
 > +    drive,rest=os.path.splitdrive(path)
 > +    if drive:
 > +            path = string.replace(rest, '\\', '/')

I like this better than mine, thanks!

 > This will only work if win32 paths are always specified as full paths by the
 > browser. Do you know if this is the case?

It seems to be, but I've only done limited testing.


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
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 )

Reply via email to