[z3-five] Annotations
Martijn Faassen
faassen at infrae.com
Fri Aug 20 09:44:02 MEST 2004
Tim Hicks wrote:
> ... but I'm not quite sure how to integrate the working of adapters with a
> plone/archetypes site. The idea of adapters seems to be to change/add to
> the behaviour of objects without touching them, but I don't know how to
> expose this in my site without actually changing the objects (or their
> class) themselves.
Typically in Zope 3 one would expose behavior defined in adapters by
also adding views for the same interface, that make use of this adapter.
I do not know how this would interact with a CMF site though.
Alternatively it might be possible to add a layer or something in CMF
that make use of this adapter.
[snip]
> My remaining problem is that I don't like writing HTML forms by hand, or
> writing validators ;-). I want my IAnnotation-stored attributes - forms
> and validation - to be handled by a framework. I'm used to relying on
> Archetypes, but zope3's schema stuff sounds like a better fit here.
>
> What problems (if any) do you foresee in exposing a zope3 schema-driven
> form in a plone/archetypes object's 'tab'?
The main problem here is that the Five community has only limited
experience in making this working -- parts of the widget system work
(there is demo code), but as far as I know nobody invested time yet in
trying to make the full machinery work. This may be easy or may be hard;
I don't think anybody really tried very hard yet.
> How would I expose such a form
> (and it's validation) through the CMF/plone skins tool?
I have no idea. :)
Regards,
Martijn
More information about the z3-five
mailing list