3 Dec
2002
3 Dec
'02
7:57 p.m.
Chris Beaven writes:
I think the question is how to return a tuple of the path to the object in context (rather than just the physical root path to it)
So if 'foo' exists in the root, but you are calling it from inside the 'Zope' object, how can you get a tuple of ('', 'Zope', 'foo'). I suggested just splitting the REQUEST.URLPATH0 and getting it from there. Is there a better way? When you do it right, there may be no need to know about the "Zope" intermediate URL segment. Personally, I would go for such a solution.
Dieter