On Wed, Jan 02, 2008 at 04:52:27PM -0500, Glenn MacGregor wrote: > I am very new to SQLObject and Python.
Welcome! > class Temp(SQLObject): > class sqlmeta: > table = "temp" > > t = Temp() > tt = t.get(1) tt = Temp.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(). > When I hit the 't = Temp()' line a new empty" entry is put into that table. Yes, upon creating a new instance SQLObject inserts a new row to the table. This is how you populate tables with SQLObject. Oleg. -- Oleg Broytmann http://phd.pp.ru/ [EMAIL PROTECTED] Programmers don't die, they just GOSUB without RETURN. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ sqlobject-discuss mailing list sqlobject-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss