[Zope-CMF] MetaType in TypeInformation objects

Tres Seaver tseaver@palladion.com
Wed, 18 Jul 2001 07:42:24 -0400 (EDT)


On Tue, 17 Jul 2001, Chris Withers wrote:

> Tres Seaver wrote:
> > 
> > Nope, because they aren't always the same.  Suppose I want to
> > create a new content type, "Press Release", which is actually
> > a CMFDefault.Document under the covers, but which has different
> > actions / skins / workflow / metdata policies, etc.  In this case,
> > the metatype would still be "Document", but the ID of the type
> > object would be "Press Release".
> 
> Yeah, but in either case, can't you sniff the meta_type from
> the python product bit?

Nope;  you can't know from the name of the factory method what
class it will instantiate, and therefore you can't get to the
meta_type.

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org