[Zope-CMF] Re: Adding a customized FTI class to CMF (1.4 + 1.5)

yuppie y.2005- at wcm-solutions.de
Mon Jan 24 05:55:36 EST 2005


Christian Heimes wrote:
> yuppie wrote:
> 
>> Only HEAD (CMF 1.6), CMF 1.5 still has the typeClasses dict.
>>
>> They are now registered like any other class in Zope. This is how 
>> FactoryTypeInformation is registered:
>>
>>     context.registerClass(
>>         TypesTool.FactoryTypeInformation,
>>         permission=ManagePortal,
>>         constructors=( TypesTool.manage_addFactoryTIForm, ),
>>         icon='images/typeinfo.gif',
>>         visibility=None)
>>
>> "visibility=None" and the fact the class implements ITypeInformation 
>> (=interfaces.portal_types.ContentTypeInformation) make it only 
>> available inside the types tool.
> 
> 
> For CMF 1.4 + 1.5 I still have to use the typeClasses dict, too?

You don't have to use registerClass for CMF 1.4 or 1.5. This is just 
necessary for CMF 1.6 compatibility.

Cheers, Yuppie



More information about the Zope-CMF mailing list