how do i copy one object's relatives to 
another object, and if possible without loading them all?

1. user1.addresses = user2.addreses does not work, it makes them share 
the same InstrList

2. user1.addresses = user2.addreses[:] does work, but fires a full 
query (maybe with obj-instantiation)
This is in the case of implicit association, using secondary=table

3. The case with intermediate association object is not so easy.
 Just shallow copying of any form does not help - now i have to make 
copies of the intermediate objects too! 

Any pointer?
else i will just find my own way around it, like a special copy() on 
InstrumentedLists that should be smart enough (when given the info) 
to make difference between implicit assoc and explicit assoc..


svil

--~--~---------~--~----~------------~-------~--~----~
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