Hi,
since SQLobject 0.8.0 the methods createTable() and createTableSQL()
in dbconnection.py changed their interface regarding the return
values. From looking at the source code the backends
firebirdconnection.py and maxdbconnection.py overwrite createTable(),
but still use the interface used in SQLObject 0.7.x where those
methods did not return a value. In SQLObject 0.8.0 createTable() is
required to return the constraints, otherwise one gets a
Traceback (most recent call last):
File "test.py", line 14, in <module>
Person.createTable(ifNotExists=True)
File
"c:\python25\lib\site-packages\sqlobject-0.8.0-py2.5.egg\sqlobject\main.py",
line 1393, in createTable
for constraint in constraints:
TypeError: 'NoneType' object is not iterable
Kind regards,
Markus
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss