[Grok-dev] Re: A plan for removing the fields inner class support
Philipp von Weitershausen
philipp at weitershausen.de
Fri Sep 14 09:57:43 EDT 2007
Martijn Faassen wrote:
> Hey,
>
> Philipp von Weitershausen wrote:
> [snip]
>> What I don't understand is why this wasn't written as
>>
>> class ModelGrokker(...):
>> component_class = (grok.Model, grok.Container, grok.LocalUtility)
>>
>> in the first place. Oh well, doesn't matter now. Delete'em :)
>
> I don't think Martian at this stage supports this pattern. We can add
> that in if we ever need it again. :)
Apparently it doesn't. *Anymore*. When the grokkers were still part of
grok, it actually worked because the match() method (now gone) of
ClassGrokkers would simply do isinstance(obj, self.component_class).
Too bad.
--
http://worldcookery.com -- Professional Zope documentation and training
More information about the Grok-dev
mailing list