[Zope] Hiding behind Apache - how to get true physical path?
Chris Beaven
chris@d-designz.co.nz
Wed, 04 Dec 2002 11:02:54 +1300
If there was a reason (say it was \\somehost\en\homepage vs
\\somehost\jp\homepage or something similar) how would you go about
figuring out whether en / jp was the language you should be using? It's
just an interesting point (what actually got me responding to the
original post in the first place) and could be useful for me at some
point in time...
Chris
Dieter Maurer wrote:
>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
>
>
>