[Zope] Newbie question...

Farrell, Troy troy.farrell@wcg.com
Thu, 20 Sep 2001 11:58:15 -0500


If you are a python person, think of _ as a dictionary.  _['content']
returns the value that corresponds to the key 'content'.  _[content] first
evaluates content and tries to return the value that corresponds to the key
stored in 'content'.

Was that confusing ?!  Now I'm confused :)

Troy

> -----Original Message-----
> From: Jan Lentfer [mailto:Jan.Lentfer@web.de]
> Sent: Thursday, September 20, 2001 11:53 AM
> To: grizel@mouli.net; zope@zope.org
> Subject: Re: [Zope] Newbie question...
> 
> 
> At 18:31 20.09.2001 +0200, you wrote:
> 
> >You're not so far from the solution...
> >
> >Just try
> >
> ><dtml-in expr="_[content]">
> >   <dtml-var whatever>
> ></dtml-in>
> 
> Thanks,
> could someone please explain to me when and why to use the underscore?
> I still didn't get that. This is about the namespace, right? 
> I read the 
> part in the Zope Book, but somehow it just didn't get in to 
> my brain cells ;-)
> 
> Many thanks in advance,
> 
> Jan
> 
> PS: Maybe some can explain it to me in german? Maybe it is a language 
> problem of mine... again, thanks
> 
> 
> 
> Jan@Mountainbikehq.de
> http://www.MountainbikeHQ.de - Your home for DH, DS and CC 
> Mountainbiking
> 
> 
> _______________________________________________
> 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 )
>