« Return to Thread: Making an interface the default module context

Re: Making an interface the default module context

by Philipp von Weitershausen :: Rate this Message:

Reply to Author | View in Thread

Martijn Faassen wrote:

> Philipp von Weitershausen wrote:
> [snip]
>> At least for Grok I personally don't have the intent of changing the
>> implicit context rules. That doesn't mean you couldn't explore
>> alternatives and enlighten us with some lessons learned :). For Grok
>> I'd personally prefer a bit more conservatism right now. We *are*
>> trying to get towards a 1.0 release, after all, and have other things
>> on our list for that.
>
> Agreed we should be careful here.
>
> That said, auto-associating with an interface that extends IContext
> sounds like a reasonable approach. It should of course fail in the face
> of ambiguity (a class *and* a model being around).

Of course.

> This would introduce auto-association with interfaces. I think that's a
> reasonably safe behavior if we require that IContext is extended, and is
> more or less analogous to what happens with classes as far as I can see.

Yeah. Well, if somebody's willing to extend grokcore.component as
described here, I won't say no :).
_______________________________________________
Grok-dev mailing list
Grok-dev@...
http://mail.zope.org/mailman/listinfo/grok-dev

 « Return to Thread: Making an interface the default module context

LightInTheBox - Buy quality products at wholesale price!