.. _PortingGuide: Porting guide ******************************************************************************* This section gives an overview of the breaking changes between major comet versions and the changes that need to be implemented on a projects side. 4.3 ➞ 5.0 =============================================================================== **Breaking changes:** ------------------------------------------------------------------------------- .. container:: priint-block | **Change**: All builtin constants have been moved from :py:mod:`comet` to :py:mod:`comet.constants` | | **Solution:** Replace all occurences of access to builtin constants in your scripts. | This can be done by replacing *comet.k* with *comet.constants.k*. | Take care not to accidently replace your custom global variables which may be prefixed with *k* aswell. .. container:: priint-block | **Change**: CGroup.getGroup has been removed. | | **Solution:** The function was a duplicate of :py:meth:`CPageItem.getGroup`. Use this function instead. **Deprecated functions:** ------------------------------------------------------------------------------- .. container:: priint-block | **Change**: *prefs.setPanelEnabled* has been deprecated | **Solution:** Use :py:func:`.panel.setEnabled`