[Grok-dev] Re: Interaction between schema fields and properties

Luciano Ramalho luciano at ramalho.org
Thu Jul 5 10:27:18 EDT 2007


On 7/5/07, Martijn Faassen <faassen at startifact.com> wrote:
> I think the grok 'fields' inner class idiom is deprecated. It was an
> early approach but I see too many things wrong with it - subclassing
> doesn't work for instance. I'm not sure what goes wrong here, but this
> is more evidence for them being too magic and too limited.

Nice to know! I had already stumbled upon another bad smell: the inner
field class *must* be an old-style class.

So I will refactor that part of Kirbi.

> If you use a separate schema you can simply use a normal Python property.

Cool.

Cheers,

Luciano


More information about the Grok-dev mailing list