[Zope] Relative URLs

Tim Owen timowen@voyager.net
Mon, 7 Jan 2002 05:30:40 -0500


This is a multi-part message in MIME format.

------=_NextPart_000_08E2_01C1973C.71D8F380
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Folks,

Quick remedial question.  How do I get folder names removed from a URL =
after calling an object lower in the folder tree?

Example:

folder1
   folder2

A folder1 object calls folder2 object using href like folder2/object =
then folder2 object calls folder1 object by name (using href with no =
path since it is higher in the folder tree).  The URL does this:

folder1/object
folder1/folder2/object
folder1/folder2/folder1/object

I would like this to happen:

folder1/object
folder1/folder2/object
folder1/object

Thanks in advance.
___________________
Tim Owen
Cell: 517.285.7071
Home: 989.224.4905
eFax: 425.940.5905

------=_NextPart_000_08E2_01C1973C.71D8F380
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4616.200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Folks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Quick remedial question.&nbsp; How do I =
get folder=20
names removed from a URL after calling an object lower in the folder=20
tree?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Example:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>folder1</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp; folder2</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>A&nbsp;folder1 object calls folder2 =
object using=20
href like folder2/object then folder2 object calls folder1 object by =
name (using=20
href with no path since it is higher in the folder tree).&nbsp; The URL =
does=20
this:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>folder1/object</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>folder1/folder2/object</FONT></DIV>
<DIV><FONT face=3DArial =
size=3D2>folder1/folder2/folder1/object</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I would like this to =
happen:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>folder1/object</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>folder1/folder2/object</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>folder1/object</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks in advance.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>___________________<BR>Tim =
Owen<BR>Cell:=20
517.285.7071<BR>Home: 989.224.4905<BR>eFax:=20
425.940.5905</FONT></DIV></BODY></HTML>

------=_NextPart_000_08E2_01C1973C.71D8F380--