A heads up for widget developers:

The Widget Types Tool has been removed. Widget code and registration now gets simpler. The Compound Widget now also takes the role of the previous Customizable Widget. Previous standard Compound or Customizable widget types (Link Widget, Text Image Widget, Image Link Widget, Search Widget, Search Location Widget) are now defined in code and not in widget type configuration.

Have a look at ExtendedWidgets.py for instance if you want to see what's changed: - the widget's meta_type is the "key" used by layouts definitions to choose the widget type (so the "CPS" prefix has been dropped),
- the registration is now done using widgetRegistry.register(XYZWidget),
- there is no "widget type" class registration anymore,
- if you want to define a compound widget in code, look at examples like CPSLinkWidget, they use the CPSProgrammerCompoundWidget base class.

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to