[Zope-CMF] Types, meta_type, content_meta_type, etc...
Tres Seaver
tseaver@zope.com
11 Apr 2002 13:23:52 -0400
On Thu, 2002-04-11 at 13:00, Shane Hathaway wrote:
> seb bacon wrote:
> > On Wed, 2002-04-10 at 15:59, Shane Hathaway wrote:
> >>The title of a TypeInformation should often match its Zope ID (but only
> >>in English). The title of a TypeInformation might be used to prefill
> >>the Type field of new instances.
> >>
> >
> > ..so all the code in TypesTool which depends on Type() to to do
> > application logic should change?
>
> That sounds right. Type() is presentation.
Not quite; 'Type()' could be interpreted that way, but that is *not*
the semantic it currently has.
For a content object, 'Type()' is *metadata*, not presentation; it
signals very strongly how humans are to interpreet the resource.
DublinCore actually recommends that it be drawn from a controlled
vocabulary:
http://www.dublincore.org/documents/dces/#type
While we don't follow their specific cross-domain vocabulary, the
current use of 'Type()' (for content) in CMF *does* follow this sense.
The 'Type()' of a TypeInformation object is currently mis-defined
to return the TIO's title/id; this is *wrong*, because the Title
of a TIO *is* presentation (it should be localizable, for instance).
The *desired* implementation would be always to return the ID for
a TIO's 'Type()', which should always be identical to the 'Type()'
of instances which are created from it.
Tres.
--
===============================================================
Tres Seaver tseaver@zope.com
Zope Corporation "Zope Dealers" http://www.zope.com