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:¶
Change: All builtin constants have been moved from
comet
to comet.constants
Solution: Replace all occurences of access to builin 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.
Change: CGroup.getGroup has been removed.
Solution: The function was a duplicate of
CPageItem.getGroup()
. Use this function instead.Deprecated functions:¶
Change: prefs.setPanelEnabled has been deprecated
Solution: Use
panel.setEnabled()