one hunch is that the B.get() method wants to receive a_id and b_id
as the arguments, i.e. B.get(1,1). the primary key of an inherited
mapper, across 'tablea' and 'tableb', is determined by:
x = join(tablea, tableb)
(x.onclause is now tablea.a_id==tableb.b_id)
the mappers primary_key cols,
Now that I've got the ActiveMapper code working to my satisfaction,
I'm trying to add inheritance. This is proving to be no small task.
At the moment, I'm modelling things as follows:
class A(ActiveMapper):
class mapping:
a_id= column( Integer, primary_key=True )
2 matches
Mail list logo