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.
Zope-CMF maillist - Zope-CMF@zope.org
See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests