[Zope-CMF] Getting an object's Product meta type

Chris Withers chrisw@nipltd.com
Thu, 27 Mar 2003 10:12:09 +0000


David Cain wrote:
> Thanks.
> 
> I likewise just discovered this.  Unfortunately, it doesn't report the
> correct "Product meta type" when I create a new scriptable type.  It
> just reports the type my scriptable type was based on :(

Indeed. Metatype isn't very useful, especially in CMF land.

The Portal Type of the object will be more useful and the way to get that has 
been described in your other thread.

> Any ideas on how to get to the actual scriptable type's "Product meta
> type" information are greatly appreciated.

The meta type you specify in the STI _must_ be the same as the one your Content 
Type is based one.

cheers,

Chris