[Zope] dtml-with & misbehaving strings
Loren Stafford
lstafford@icompression.com
Tue, 1 Feb 2000 11:08:08 -0800
I would try "_[_['myproperty']]" but without much confidence. These indirect
references are very confusing.
-- Loren
> -----Original Message-----
> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
> Thomas
> Sent: Tuesday, February 01, 2000 09:29
> To: zope@zope.org
> Subject: [Zope] dtml-with & misbehaving strings
>
>
> Hi everyone,
>
> I have a folder with a property. In a method within this folder I try the
> following:
>
> <dtml-with "_[myproperty]">
> grab some stuff
> </dtml-with>
>
> where myproperty is a string equal to Games.Whatup
>
> Both 'Games' and 'Whatup' are objects. So I am trying to
> drill down my directory and stack the namespace via the with
> tag, but I get the following message:
>
> Error Type: KeyError
> Error Value: Games.Whatup
>
>
> I want it to to do the following (which works fine):
>
> <dtml-with "Games.Whatup">
> grab some stuff
> </dtml-with>
>
>
> Am i missing something here? Thanks for any help and hints in advance.
>
> Thanks,
> Thomas
>
>
>
>
> _______________________________________________
> 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 )
>