Absolute to relative URL?
Massimo Valentini
sixtysix at inwind.it
Thu Apr 4 11:24:39 EST 2002
"Massimo Valentini" wrote
:
: I would suggest to consider even a case like this:
:
: url1 = "http://foo/a/b/images"
: url2 = "http://foo/a/b/c/d/images"
: print "Expect: '../../../images'"
: print repr(relativePath(url1,url2))
: print ""
:
Sorry, the case to consider is this one:
url1 = "http://foo/a/b/images"
url2 = "http://foo/a/c/images/b"
print "Expect: '../../c/images/b'"
print repr(relativePath(url1,url2))
print ""
Massimo
More information about the Python-list
mailing list