Re: [sqlalchemy] (Newbie) Using a custom collection extending from a dict(). Is that doable?

2010-11-09 Thread Michael Bayer
On Nov 8, 2010, at 6:36 PM, Hector Blanco wrote: methods that I have implemented and that need to be there. That would be the ZepConnector (and, for purposes of the example, it's method foo() it's the one I need to use). As you can see in the following lines, I randomly test its availability

Re: [sqlalchemy] (Newbie) Using a custom collection extending from a dict(). Is that doable?

2010-11-09 Thread Hector Blanco
Shoot!! It works!! :D :D -- Parent.py (extract) -- # . . . child1 = relationship( Child, uselist=True, primaryjoin=lambda: and_((Parent.id == Child.parent_id), (Child.type == VR)),

[sqlalchemy] (Newbie) Using a custom collection extending from a dict(). Is that doable?

2010-11-08 Thread Hector Blanco
Hello everyone... I'm trying to use a custom collection to connect (or relate) two classes but I haven't been able to do it. Maybe I got the whole concept of the custom collections wrong, but let me explain what I am doing (and see if someone can give me a hint, or something) I have a Parent