[Framework-Team] Re: PLIP 10359 for Plone 4.1 - Convert control panels to use z3c.form

Hanno Schlichting hanno at hannosch.eu
Mon Mar 22 21:15:26 UTC 2010


On Mon, Mar 22, 2010 at 1:32 AM, Martin Aspeli <optilude+lists at gmail.com> wrote:
> David Glick wrote:
>> So I guess it's not clear to me that there is one best practice, or at
>> least not one that is best in all circumstances.
>
> To me at least, the idea that we pick an arbitrary context (the Plone site
> root) and then write a one-off adapter from that to some schema interface
> that happens to represent the fields we want (the schema is almost always
> form-specific, since we want to control fields, ordering, fieldset grouping
> etc), register it in the CA (even though it's going to be used only for the
> form) and then let the form framework look it up on a field-by-field basis
> seems entirely like CA abuse. It's also quite difficult to understand if
> you're reading the code.

Ok, so there doesn't seem to be "one obvious way to do it" :(

Once I get to actually coding this, I'll try both approaches and make
an arbitrary decision based on what "looks better" ;-)

Thanks for the input,
Hanno




More information about the Framework-Team mailing list