*Where to* you do not need to pass the transacrion?

To the constructor:

------------------------------------------------------------------------------
class item(so.SQLObject):
   descr=so.StringCol(default='')

so.sqlhub.processConnection = trans
item.createTable(ifNotExists=True, connection=trans)

i = item()
------------------------------------------------------------------------------

Creating table needs the explicit parameter "connection", while
creating object needs not.

--
jt


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to