Re: [Zope] traverse_subpath with index_html ?
Is there a way to use traverse_subpath in a page template called index_html without having index_html in the url?
so, for instance, if I have a template called aaa which just prints the traverse subpath, I can call it with:
http://example.com/aaa/bbb/ccc
and get: ['bbb', 'ccc']
but if it is called index_html I would have to use:
That's odd, I'd say your first example looks like a bug.
Submit it at http://collector.zope.org or ask on zpt@zope.org and maybe Evan can shed some light...
Not sure I understand...
From what I've read:
""" If your script is traversed, meaning that other path elements follow it in a URL, then those path elements are placed in a list, from left to right, in this variable """ So, are you saying that /aaa/bbb/ccc should not give ['bbb', 'ccc'] or are you saying that /bbb/ccc should ALSO give ['bbb', 'ccc'] ? It does seem to me that index_html IS being traversed, even though it may be that it is being traversed implicitly. Thanks for your time. _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
Lee Harr wrote:
So, are you saying that /aaa/bbb/ccc should not give ['bbb', 'ccc'] or are you saying that /bbb/ccc should ALSO give ['bbb', 'ccc'] ?
It does seem to me that index_html IS being traversed, even though it may be that it is being traversed implicitly.
Sorry, ignore me, I was mistaken... http://example.com/aaa/bbb/ccc ...will not involve traversal of index_html, as far as I can tell. What makes you think it does? Chris
participants (2)
-
Chris Withers -
Lee Harr