Thanks for your help.
On Wed, Jan 02, 2008 at 04:52:27PM -0500, Glenn MacGregor wrote:Welcome!
> I am very new to SQLObject and Python.tt = Temp.get(1)
> class Temp(SQLObject):
> class sqlmeta:
> table = "temp"
> t = Temp()
> tt = t.get(1)
.get() is a class method - a method that is called on class, not on an
instance; so you don't need to create the 't' instance to call .get().
Yes, upon creating a new instance SQLObject inserts a new row to the
> When I hit the 't = Temp()' line a new empty" entry is put into that table.
table. This is how you populate tables with SQLObject.
Oleg Broytmann http://phd.pp.ru/ email@example.com
Programmers don't die, they just GOSUB without RETURN.