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)"

Re: [Zope] DTML entity syntax: was Nested properties (addition)

2000-09-28 Thread Wolfgang Strobl
On 27 Sep 2000, 12:46 Lars Heber wrote: I forgot something: By the way: Is it possible to insert special characters in properties, like auml;? I meant, that properties with special characters in it are not displayed correctly, when called with the shortened syntax dtml-VARNAME;.

Re: [Zope] dtml-in syntax

2000-07-30 Thread Manuel Schulte
Would this do it? : dtml-let item=0 dtml-in wherever dtml-let level="level+1" /dtml-in /dtml-let Cheers, Manuel On Sat, 29 Jul 2000, Tim Cook wrote: Kyle Burnett wrote: so i have this loop and i want to count a variable: dtml-in wherever dtml-if

[Zope] dtml-in syntax

2000-07-29 Thread Kyle Burnett
so i have this loop and i want to count a variable: dtml-in wherever dtml-if sequence-start dtml-var count-id /dtml-if /dtml-in but what i really want to count is specific values for id. so let's say id=='value1', i want to try and do the following: dtml-in wherever dtml-if

Re: [Zope] dtml-in syntax

2000-07-29 Thread Tim Cook
Kyle Burnett wrote: so i have this loop and i want to count a variable: dtml-in wherever dtml-if sequence-start dtml-var count-id /dtml-if /dtml-in but what i really want to count is specific values for id. so let's say id=='value1', i want to try and do the following: