Re: Python/MySQL Frustration

2009-09-20 Thread John Nagle
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

Re: Python/MySQL Frustration

2009-09-20 Thread Victor Subervi
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) >>

Re: Python/MySQL Frustration

2009-09-20 Thread Philip Semanchuk
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, '')

Python/MySQL Frustration

2009-09-20 Thread Victor Subervi
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, '') uom = 'uom' + str(i) uom = form.getfi