Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread Torsten Landschoff
Hi Michael. On Sun, 2010-04-25 at 22:32 -0400, Michael Bayer wrote: You should be able to roll this yourself as a custom dictlike collection class . That's what I did :-) I wrote mostly to share my code and to suggest that this should be available out of the box. sorry, it seems

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread Michael Bayer
Torsten Landschoff wrote: Thanks for your reply and the remarks! Do you plan to extend attribute_mapped_collection to update the key like in my example? here's some things to note on that: 1. I'm not sure why it wasn't that way already, and I'd want to hear from Jason Kirtland, its author, on

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread jason kirtland
On Mon, Apr 26, 2010 at 8:24 AM, Michael Bayer mike...@zzzcomputing.com wrote: Torsten Landschoff wrote: Thanks for your reply and the remarks! Do you plan to extend attribute_mapped_collection to update the key like in my example? here's some things to note on that: 1. I'm not sure why it

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread Torsten Landschoff
On Mon, 2010-04-26 at 11:24 -0400, Michael Bayer wrote: 2. I wonder if there's a way to make this happen more deeply than within setattr(). Like the collection internals would include an event to operate upon the target object that includes the other args from the collection decorator.

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread Torsten Landschoff
On Mon, 2010-04-26 at 11:08 -0700, jason kirtland wrote: 1. I'm not sure why it wasn't that way already, and I'd want to hear from Jason Kirtland, its author, on if we are missing something or otherwise whats up. I have a vague notion that there was a reason for this, or maybe not.

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-25 Thread Michael Bayer
On Apr 25, 2010, at 7:31 PM, Michael Bayer wrote: On Apr 25, 2010, at 1:38 PM, Torsten Landschoff torsten.landsch...@dynamore.de wrote: Hi everybody. After reading the documentation on dictionary based collections at

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-25 Thread Michael Bayer
On Apr 25, 2010, at 10:18 PM, Michael Bayer wrote: On Apr 25, 2010, at 7:31 PM, Michael Bayer wrote: On Apr 25, 2010, at 1:38 PM, Torsten Landschoff torsten.landsch...@dynamore.de wrote: Hi everybody. After reading the documentation on dictionary based collections at