I've just committed (r1270) preliminary support for inheritance in ActiveMapper, however, none of my tests seem to work with the Trunk of sqlalchemy. So I need to figure out what's wrong.

In addition, there WAS some problem with multiple primary keys. For example if you have:

class A(ActiveMapper):
        class mapping:
                __table__="a"
                pk= column( Integer, primary_key=True )
                name= column( String )

class B(A):
        class mapping:
                __table__="b"
                pk= column( Integer, foreign_key="a.pk", primary_key=True )
                age= column( Integer )

You can create an instance of B just fine, but when you attempt to retrieve the B, I'm told I need another pk value... weird.

--
Jeff Watkins
http://newburyportion.com/

"Advertising directed at children is inherently deceptive and exploits children under eight years of age."
-- American Academy of Pediatrics




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to