[Zope] Hiding behind Apache - how to get true physical path?

Dieter Maurer dieter@handshake.de
Tue, 3 Dec 2002 20:57:56 +0100


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