Re: Walking through a mysql db

2005-06-08 Thread Ed Leafe
On Jun 4, 2005, at 9:24 AM, Jeff Elkins wrote: > I'm writing a small wxpython app to display and update a dataset. Have you looked at Dabo (URL is in my sig)? You can create an app to select, edit and update a MySQL database in about 30 seconds. It also wraps wxPython to make creating c

Re: Walking through a mysql db

2005-06-04 Thread Jeff Elkins
Thanks for the replies! I went ahead and used the fetchall() approach and work with the array, writing changes back to the database. It's working fine. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Walking through a mysql db

2005-06-04 Thread Heiko Wundram
Am Samstag, 4. Juni 2005 17:23 schrieb Jeff Elkins: > Within this same app, I've got a search function working, but I need the > rownumber when a record is fetched. > > sql = """select * from address where %s = %%s""" % arg1.lower() > cursor.execute(sql, (arg2,)) > item =

Re: Walking through a mysql db

2005-06-04 Thread Scott David Daniels
Jeff Elkins wrote: > On Saturday 04 June 2005 09:24 am, Jeff Elkins wrote: ... >>Now, how do I step through the dataset one row at a time? My form has >>'next' and 'back' buttons, and I'd like them to step forward or back, >>fetching the appropriate row in the table. I've tried setting >>cursor.r

Re: Walking through a mysql db

2005-06-04 Thread Jeff Elkins
On Saturday 04 June 2005 09:24 am, Jeff Elkins wrote: > I'm writing a small wxpython app to display and update a dataset. So far, I > get the first record for display: > > try: > cursor = conn.cursor () > cursor.execute ("SELECT * FROM dataset") > item = cursor.fetchone () > > No

Re: Walking through a mysql db

2005-06-04 Thread wes weston
Jeff Elkins wrote: > I'm writing a small wxpython app to display and update a dataset. So far, I > get the first record for display: > > try: > cursor = conn.cursor () > cursor.execute ("SELECT * FROM dataset") > item = cursor.fetchone () > > Now, how do I step through the dat

Re: Walking through a mysql db

2005-06-04 Thread Benjamin Niemann
Jeff Elkins wrote: > I'm writing a small wxpython app to display and update a dataset. So far, > I get the first record for display: > > try: > cursor = conn.cursor () > cursor.execute ("SELECT * FROM dataset") > item = cursor.fetchone () > > Now, how do I step through the dat

Walking through a mysql db

2005-06-04 Thread Jeff Elkins
I'm writing a small wxpython app to display and update a dataset. So far, I get the first record for display: try: cursor = conn.cursor () cursor.execute ("SELECT * FROM dataset") item = cursor.fetchone () Now, how do I step through the dataset one row at a time? My form has