[Zope] path...
Casey Duncan
cduncan@kaivo.com
Thu, 05 Apr 2001 09:39:30 -0600
After Dark wrote:
>
> What you said makes very much sense, I liked that. :)
> But....
>
> I tryed this and didn`t work again. :~(
>
> <dtml-call "REQUEST.set('base',_.getitem('MedSaude.sintoma'))">
> <dtml-with base>
>
> Error: trying to reference a nonexisting....
>
> It seems to me that nothing works.. :~~(
> Help!!
>
> Bye.
>
You can only pass the name of a single object to getitem. If you wish to
pass the parent object, you need to do two separate getitems like:
<dtml-with expr="_.getitem('MedSaude')">
<dtml-call "REQUEST.set('base',_.getitem('sintoma'))">
</dtml-with>
If I may, what is the reason for this arbitrary object retrieval? I
sense there is an easier way to accomplish what you need with jumping
through these hoops.
--
| Casey Duncan
| Kaivo, Inc.
| cduncan@kaivo.com
`------------------>