You may be interested in an older thread, 'How to get list of relations': http://groups.google.com/group/sqlalchemy/browse_thread/thread/ff03af921 eb12acb/861597e8a72f5e6f
Simon -----Original Message----- From: sqlalchemy@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 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 way to list the object attributes? Thanks a lot for your help, Chris -----Original Message----- From: sqlalchemy@googlegroups.com [mailto:[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 mapping? > Try this: for col in Message.c: ... Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---