The problem is due to PyMySQLdb which had some API changes moving
insert_Id() from the cursor to the database object.
I have temporarily fixed the problem by changing the
retrieveLastInsertId() function in MySQLObjectStore.py to:
conn, cur = self.executeSQL('select last_insert_id();', conn)
return cur.fetchone()[0]
Hope that helps.
-Seth
>>> "Vytautas Bruzgis" <[EMAIL PROTECTED]> 05/08/05 7:05 am >>>
i am using MiddleKit's quickstart. I have come to step -�*
python Command/main.py. I dont know if i do it wrigth. But i retrieve an
error
when compiling main.py
Traceback (most recent call last):
�* File "Command/main.py", line 43, in ?
�*�*�* main()
�* File "Command/main.py", line 40, in main
�*�*�* store.saveChanges()
�* File "MiddleKit\Run\ObjectStore.py", line 316, in saveChan
�* File "MiddleKit\Run\SQLObjectStore.py", line 193, in commi
�* File "MiddleKit\Run\SQLObjectStore.py", line 214, in _inse
�* File "MiddleKit\Run\MySQLObjectStore.py", line 36, in retr
AttributeError: 'Cursor' object has no attribute 'insert_id'
What is wrong?
i have made all the steps rigth as it is said in Quick start.
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r
_______________________________________________
Webware-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/webware-discuss