[Dev] Simplifying biref definition and kind extensions

Morgen Sagen morgen at osafoundation.org
Thu Sep 8 13:52:35 PDT 2005


On Sep 8, 2005, at 12:05 PM, Phillip J. Eby wrote:
>
> So the first part of what I'm proposing, then, is that in the  
> sharing parcel, Morgen should be able to do this:
>
>     items = schema.Sequence(pim.CalendarEventMixin,  
> inverse=schema.One())
>
> and *not* have to go edit the CalendarEventMixin class, just to add  
> the backward reference that he never uses anyway.

Bliss.

I have a question though -- since this still adds an attribute to the  
CalendarEventMixin under the hood, do we still have the problem that  
a Kind can't be modified once instances of it have been created?  You  
couldn't create a bunch of CalendarEvents in your repository and then  
later add in 'foreign' (or whatever we're calling them) attributes to  
that Kind, right?  I realize this is nothing new, I just wanted to  
verify my understanding.

I like your proposal. +1



More information about the Dev mailing list