Hello,
Please consider the sample from SA 0.3 documentation:
mapper(User, users_table, properties={
'boston_addresses' : relation(Address, primaryjoin=
and_(users_table.c.user_id==Address.c.user_id,
Addresses.c.city=='Boston'))
})
Is there any way to use a function instead of fixed parameter? To be
able to write something like this:
mapper(User, users_table, properties={
'featuring_addresses' : relation(Address, primaryjoin=
and_(users_table.c.user_id==Address.c.user_id,
Addresses.c.city==featuring_city_name))
})
where featuring_city_name is a function.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---