[sqlalchemy] Re: access the fields in a record as a dict

2008-07-06 Thread alex bodnaru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi ilya, everybody, that time, i was using elixir and not the select() function in sa. elixir.query.filter() returned a list of objects, with their fields as attributes (same as the entity definition in elixir). thus, to have each record

[sqlalchemy] Re: access the fields in a record as a dict

2008-01-16 Thread Michael Bayer
what, like dict(row) ? that should workno ? On Jan 16, 2008, at 6:29 PM, alex bodnaru wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi friends, in older sa i could cast a record to a dict, in order to access their fields by their name, especially if the field name is not a

[sqlalchemy] Re: access the fields in a record as a dict

2008-01-16 Thread alex bodnaru
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi mike, thanks for your prompt answer. it doesn't work anymore, indeed :( alex Michael Bayer wrote: what, like dict(row) ? that should workno ? On Jan 16, 2008, at 6:29 PM, alex bodnaru wrote: hi friends, in older sa i could