[Zope3-dev] RE: annotations/dc and component definitions
Tres Seaver
tseaver@zope.com
30 Apr 2003 18:53:48 -0400
On Wed, 2003-04-30 at 11:23, R. David Murray wrote:
> On Wed, 30 Apr 2003, Garrett Smith wrote:
> > The "surprise" is in seeing a "Metadata" tab pop up in the ZMI for my
> > content as soon as I implement IAttributeAnnotatable. It would have been
> > less surprising if I implemented something like
> > IAttributeAnnotatableMetadata.
>
> You'll see (or not see but experience) more things than that
> "popping up" in the future by telling a class to implement that
> particular interface. A lot of things will probably use the
> annotation system.
This is actually a wart, for me. I don't believe that the
"DWIM"-ishness fits the rest of what we do in Zope3. We already have a
marker interface which should be used for the "Metadata" tab:
'zope.app.interfaces.dublincore.IZopeDublinCoreAnnotable'.
The wiring between IAA and IZDCA should be more explicit, and *much*
easier to control; otherwise I can't make fine-grained policy choices
(e.g., I can't have objects which use annotations to store workflow
history, but put metadata in an RDBMS, or vice versa).
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com