1 Dec
2002
1 Dec
'02
11:55 p.m.
You could always get the URLPATH from the request and split it on "/". I'm sure there must be a nicer way to do this still... Skip Montanaro wrote:
I'm working on a Zope server which is sitting behind Apache, so instead of
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,