[sqlalchemy] Association Objects

2011-12-07 Thread Julian Berman
Hi there :). Running into a bit of trouble trying to grasp how to manipulate association objects properly. I've really got two separate questions, but hopefully it's clear enough that I can ask them both properly. Given the following example: class Event(Base): name = Column(Unicode,

Re: [sqlalchemy] Association Objects

2011-12-07 Thread Michael Bayer
On Dec 7, 2011, at 2:07 PM, Julian Berman wrote: So, when searching, I see some results that seem to ask this question, though none of the solutions are for recent versions of sqlalchemy, so, I may as well just ask :): how could I have Location.events be order_by'd via Event.date? Well

[sqlalchemy] Association objects in 0.4.2p3

2008-02-12 Thread Donovan Kolbly
I am trying to go through the mapping tutorial in 0.4.2p3 for association objects. I get an error about Could not assemble any primary key columns for mapped table 'association' when attempting to map the association table itself. This is straight out of the Mapping Configuration docs that