[Zope] UPDATE: Problems calling directory
Ben Peter
Ben.Peter@t-online.de
Fri, 20 Apr 2001 07:18:17 +0200
Adrian,
I did write bullshit.
Ben.Peter@t-online.de (Ben Peter) wrote:
> <dtml-with "_['location']">
> gives you the string "Portal.Publications.Review", while
>
> <dtml-with "Portal.Publications.Review">
> gives you the actual resolved object.
>
This is still true, but:
> <dtml-with "_.getitem('location')">
wont't give you more than the string "Portal.Publications.Review" either. So, what you want is:
<dtml-with "_.getitem(_.getitem('location'))">
The inner _.getitem('location') will yield the string "Portal.Publications.Review". The outer _.getitem will then give you the actual object.
Sorry for the confusion.
Cheers,
Ben
--
Ben Peter - Feldstrasse 8 - 35091 Coelbe
Ben.Peter@t-online.de
ph: (+49) 6421 983520