Oleg,

Thanks for your help.

On Jan 2, 2008 5:15 PM, Oleg Broytmann <phd@phd.pp.ru> wrote:
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().

Thanks.


> 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.

Is there a way to read the current table in with out inserting anything?


Oleg.
--
    Oleg Broytmann             http://phd.pp.ru/            phd@phd.pp.ru
          Programmers don't die, they just GOSUB without RETURN.