[sqlalchemy] Re: Possible to define composite mapping separate from underlying class implementation?

2009-08-24 Thread Michael Bayer
hal_robertson wrote: > > Hmm... I must be missing something then in the mapping > > This is the error I'm getting: > > "AttributeError: 'Z' object has no attribute '__composite_values__'" > > How do I do the mapping so that the Z instances map to the respective > composite tables correctly? > > I

[sqlalchemy] Re: Possible to define composite mapping separate from underlying class implementation?

2009-08-24 Thread hal_robertson
Hmm... I must be missing something then in the mapping This is the error I'm getting: "AttributeError: 'Z' object has no attribute '__composite_values__'" How do I do the mapping so that the Z instances map to the respective composite tables correctly? I assume then I do not want to use "compo

[sqlalchemy] Re: Possible to define composite mapping separate from underlying class implementation?

2009-08-24 Thread Michael Bayer
hal_robertson wrote: > AttributeError: 'Z' object has no attribute '__composite_values__' > > using sqlalchemy.orm.composite to map instances of Z to composite > tables > requires that Z define __init__, __composite_values__, and ideally > __set_composite_values__, and __eq__, which are specific t