[Zope] Hiding behind Apache - how to get true physical path?
Tim Freund
tim@freunds.net
01 Dec 2002 15:20:45 -0600
Would a SiteRoot object do the trick?
I've never used it in a script, but it has made Zope behave well behind
Apache for me.
On Sun, 2002-12-01 at 14:42, Skip Montanaro wrote:
>
> 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?
>
> Thanks,
>
> --
> Skip Montanaro - skip@pobox.com
> http://www.mojam.com/
> http://www.musi-cal.com/
>
> _______________________________________________
> 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 )
--
Tim Freund
tim@freunds.net