On 11/1/06, Michael Bayer <[EMAIL PROTECTED]> wrote: > (moving to google groups)
Eh, sorry cached email address. > the idea of using an instrumented list subclass is that you *would* > use the association object, and just have the list subclass handle > the references to the association object for you, i.e.: Simple enough > class MyList(list): > def append(self, item): > super(MyList, self).append(new ItemAssociation(item)) > def __getitem__(self, index): > return super(MyList, self).__getitem__(index).item > > ..etc I'm not understanding what's happening in the append. I know item is one side of my relation, but how to I get access to the other? Is the InstrumentedList magic supposed to handle this somehow? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---