Re: [Zope] dtml-with syntax question

2000-10-13 Thread Geoffrey L. Wright
Tim Cook writes: I'm sure someone will correct me if I'm wrong. But I believe you want: dtml-with "_.getitem(attribute3)" Haven't tried it in my code yet, but thanks to your post I found the section about _.getitem(). That'll come in handy all over the place, so many thanks for the

[Zope] Computed attribute access (was: [Zope] dtml-with syntax question)

2000-10-12 Thread Dieter Maurer
Geoffrey L. Wright writes: I think I am finally getting a decent handle on namespace issues in Zope, and I can now with the dtml-with tag with reasonable efficacy in simple situations. But I have run into something of a brick wall on one issue. What I would like to be able to do is

Re: [Zope] dtml-with syntax question

2000-10-12 Thread \Geoffrey L. Wright\ Geoffrey L. Wright
Chris Withers writes: "Geoffrey L. Wright" wrote: Where objectName2 is actually an attribute of objectName1. dtml-with objectName1 dtml-var attribute1 dtml-var attribute2 dtml-var attribute3 dtml-with objectName2

Re: [Zope] dtml-with syntax question

2000-10-12 Thread Tim Cook
"\"Geoffrey L. Wright\" Don't I have to do something in my syntax to indicate that I'm looking for the the value of attribute3 rather than an object with the literal id "attribute3"? I'm sure someone will correct me if I'm wrong. But I believe you want: dtml-with "_.getitem(attribute3)"

[Zope] dtml-with syntax question

2000-10-11 Thread Geoffrey L. Wright
So here's a question from a fairly new Zope developer: I think I am finally getting a decent handle on namespace issues in Zope, and I can now with the dtml-with tag with reasonable efficacy in simple situations. But I have run into something of a brick wall on one issue. What I would like to