Dennis Lee Bieber wrote:
On Sun, 20 Sep 2009 14:25:53 -0400, Victor Subervi
declaimed the following in
gmane.comp.python.general:
Hi;
I have the following code:
while i < num:
cat = 'cat' + str(i)
cat = form.getfirst(cat, '')
item = 'item' + str(i)
item = form.get
Yeah, that was the problem..."num" was a string ;) Just caught it myself,
too. Thanks,
V
On Sun, Sep 20, 2009 at 2:37 PM, Philip Semanchuk wrote:
>
> On Sep 20, 2009, at 2:25 PM, Victor Subervi wrote:
>
> Hi;
>> I have the following code:
>>
>>while i < num:
>> cat = 'cat' + str(i)
>>
On Sep 20, 2009, at 2:25 PM, Victor Subervi wrote:
Hi;
I have the following code:
while i < num:
cat = 'cat' + str(i)
cat = form.getfirst(cat, '')
item = 'item' + str(i)
item = form.getfirst(item, '')
descr = 'descr' + str(i)
descr = form.getfirst(descr, '')