[Zope] Hiding behind Apache - how to get true physical path?
Chris Beaven
chris@d-designz.co.nz
Tue, 03 Dec 2002 13:00:49 +1300
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?
Dieter Maurer wrote:
>Skip Montanaro writes:
> > I'm working on a Zope server which is sitting behind Apache, so
>instead of
> >
> > http://somehost/foo/bar/baz
> >
> > URLs take this form:
> >
> > http://somehost/Zope/foo/bar/baz
> >
> > Inside a Python script I can ask for the path to an object like so:
> >
> > context.foo.getPhysicalPath()
> >
> > which returns
> >
> > ('', 'foo')
> >
> > Is there a way to get it to return
> >
> > ('', 'Zope', 'foo')
> >
> > without knowing "/Zope" explicitly?
>Use VHM (VirtualHostMonster) and "absolute_url" and
>forget about the question above.
>
>Head the documentation you find on a VHM instance.
>
>
>Dieter
>
>_______________________________________________
>Zope maillist - Zope@zope.org
>http://lists.zope.org/mailman/listinfo/zope
>** No cross posts or HTML encoding! **
>(Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
>