[sqlalchemy] Re: access mapped object attributes

2007-11-06 Thread King Simon-NFHD78
Christophe Alexandre Sent: 06 November 2007 15:59 To: sqlalchemy@googlegroups.com Subject: [sqlalchemy] Re: access mapped object attributes Hi, I am also interested in retrieving all the attributes resulting from the ORM. The loop on '.c' will list only the database columns. Is there a wa

[sqlalchemy] Re: access mapped object attributes

2007-11-06 Thread Rick Morrison
November 05, 2007 8:45 PM > To: sqlalchemy@googlegroups.com > Subject: [sqlalchemy] Re: access mapped object attributes > > > Hi, > > >Given a Message object, do I have a way to retrieve all the attributes > >

[sqlalchemy] Re: access mapped object attributes

2007-11-06 Thread Christophe Alexandre
lto:[EMAIL PROTECTED] On Behalf Of Paul Johnston Sent: Monday, November 05, 2007 8:45 PM To: sqlalchemy@googlegroups.com Subject: [sqlalchemy] Re: access mapped object attributes Hi, >Given a Message object, do I have a way to retrieve all the attributes >that result from the database mapp

[sqlalchemy] Re: access mapped object attributes

2007-11-05 Thread Eric Lemoine
On 11/5/07, Paul Johnston <[EMAIL PROTECTED]> wrote: > > Hi, > > >Given a Message object, do I have a way to retrieve all the attributes > >that result from the database mapping? > > > Try this: > > for col in Message.c: It works. thanks a lot Paul, -- Eric --~--~-~--~~~

[sqlalchemy] Re: access mapped object attributes

2007-11-05 Thread Paul Johnston
Hi, >Given a Message object, do I have a way to retrieve all the attributes >that result from the database mapping? > Try this: for col in Message.c: ... Paul --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "