Ahh!! Starting to understand it. In this case, the entire expression to
primaryjoin must be a string. The explanation about eval'ing the string when
mappers are compiled makes sense.

Now I see the relation in GHZ's example and in the code I will be writing
should look something like this.

boston_addresses = relation('Address',
  primaryjoin = "and_(User.user_id==Address.user_id,Address.city=='Boston')"
 )

-- 
Mike Conley

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to