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
From: Jan Lentfer <Jan.Lentfer@web.de>
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 ;-)
_ is just the name of a dictionary which contains the context (?) - in Python, you access dictionaries by giving the key and it returns the value, so, dictionary[key] = value I recommend 'the Quick Python Book' by Harms & MacDonald. The Zope book assumes you know Python already, and you should - it's not that hard to learn.
participants (2)
-
Jan Lentfer -
marc lindahl