[Zope-CMF] Making GenericSetup property import less strict

yuppie y.2010 at wcm-solutions.de
Tue Feb 16 05:53:18 EST 2010


Wichert Akkerman wrote:
> I am running into an interesting problem: it appears to be impossible to
> write a FTI that works in both CMF 2.1 and 2.2. The problem are content
> icons: CMF 2.1 requires a content_icon property in the FTI to configure
> the icon, while CMF 2.2 requires icon_expr. Unfortunately you can not
> have both in your FTI since GenericSetup will abort when it encounters
> an unknown property. The only two possible solutions are to have
> separate FTIs for CMF 2.1 an CMF 2.2, or to not use icons at all.

This should work:

Just add 'content_icon'. CMF 2.1 knows that property and CMF 2.2 has 
some migration code that converts this to an 'icon_expr' property.



More information about the Zope-CMF mailing list