[Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Alex Mendez
Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15 width=15 so the number of stars

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Shane Hathaway
Alex Mendez wrote: Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code img SRC="star.gif" height=15

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Steve Alexander
Shane Hathaway wrote: Alex Mendez wrote: Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat that n times the code

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Steve Alexander
Steve Alexander wrote: Shane Hathaway wrote: dtml-in expr="_.range(0, movie_rating)" img SRC="star.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. What about dtml-var "'*' * movie_rating" ? Or rather: dtml-var "'img

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Jim Sanford
nt: Friday, June 02, 2000 5:28 AM Subject: [Zope-dev] Repeating a piece of HTML code Hello, it's the first time I write here and I'm a newbie at Zope, so maybe I'm asking a stupid question... Case is I retrieve from my movie database the value of the movie from 1 to 5 stars. I would like to repeat

Re: [Zope-dev] Repeating a piece of HTML code

2000-06-02 Thread Duncan Booth
dtml-in expr="_.range(0, movie_rating)" img SRC="star.gif" height=15 width=15 /dtml-in Replace movie_rating with the variable that represents the movie rating. What about dtml-var "'*' * movie_rating" ? Fine, except that he wants the img tag repeated the appropriate number of