Re: Repeat a string X times, where X is a database value.

2008-04-06 Thread Lee Hinde
Terrific. Thanks. On Apr 6, 7:30 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would make a filter there takes a string and repeats it the number > of times in the arg. > > On Apr 6, 9:27 pm, Lee Hinde <[EMAIL PROTECTED]> wrote: > > > Hi; > > > i have a database field "pricing_level".

Re: Repeat a string X times, where X is a database value.

2008-04-06 Thread [EMAIL PROTECTED]
I would make a filter there takes a string and repeats it the number of times in the arg. On Apr 6, 9:27 pm, Lee Hinde <[EMAIL PROTECTED]> wrote: > Hi; > > i have a database field "pricing_level". It's an int between 1 and 5. > > In a web page, I'm iterating through a list of products and I want

Repeat a string X times, where X is a database value.

2008-04-06 Thread Lee Hinde
Hi; i have a database field "pricing_level". It's an int between 1 and 5. In a web page, I'm iterating through a list of products and I want to display something like: {% for p in Prod %} {{p.product_level*"$"}} {% endfor %} (along with a bunch of other stuff,