On Jul 20, 2008, at 2:24 PM, Rob Cowie wrote:

>
> On reflection, I didn't pose the problem very clearly.
>
> What I mean with regard to appending or removing index objects is that
> the collection returned by company.indices(date) would - on append of
> an index object - record the association by creating an
> IndexAssociation object (mapped to the association table) and save it.
> The result would be that appending an index to the collection would
> add an entry to the association table with coid, the indexid, the
> appropriate date (passed to .indices()) AND a type of 'JOIN'.
>
> This is similar to the functionality provided by the standard sa
> collections.
>
> Regardless, I think the rest of your answer implies a custom solution
> is appropriate.

you might be able to implement this entirely using the  
associationproxy extension.   It would need a little bit of creativity  
regarding the instantiation of the collection since its not directly  
bound to a relation().


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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