comparison CHANGES.txt @ 192:46c7d872db83

Changelog: note the latest refactorings
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 03 May 2019 20:04:40 +0200
parents 3c0ff52b2bdb
children 28e6c1413947
comparison
equal deleted inserted replaced
191:8af600d0e5c0 192:46c7d872db83
17 :released: unreleased 17 :released: unreleased
18 18
19 .. change:: 19 .. change::
20 :tags: breaking 20 :tags: breaking
21 21
22 The public functions to manage file extensions to file modes have 22 Additional or alternative loaders can be installed by changing
23 been renamed to :py:func:`configmix.set_assoc`, 23 the :py:data:`configmix.mode_loaders` dictionary directly.
24 :py:func:`configmix.get_assoc`, :py:func:`clear_assoc`, 24
25 .. change::
26 :tags: breaking
27
28 The public functions to associate filename extensions to filemodes
29 have been renamed to :py:func:`configmix.set_assoc`,
30 :py:func:`configmix.get_assoc`,
31 :py:func:`configmix.clear_assoc`,
25 :py:func:`configmix.get_default_assoc`. 32 :py:func:`configmix.get_default_assoc`.
33
34 The filemodes must be keys in the :py:data:`configmix.mode_loaders`
35 dictionary.
26 36
27 .. change:: 37 .. change::
28 :tags: breaking, feature 38 :tags: breaking, feature
29 39
30 The associations from filename extensions to parsers are 40 The associations from filename extensions to parsers are
31 :py:mod:`fnmatch` style patterns now. 41 :py:mod:`fnmatch` style patterns now.
32 42
33 Calling :py:func:`configmix.set_assoc` prepends to the currently 43 Calling :py:func:`configmix.set_assoc` by default prepends to
34 defined associations and therefore gets the highest priority. 44 the currently defined associations and therefore gets the
45 highest priority. Appending is possible also.
35 46
36 .. change:: 47 .. change::
37 :tags: feature 48 :tags: feature
38 49
39 :py:func:`configmix.load` and :py:func:`configmix.safe_load` got a 50 :py:func:`configmix.load` and :py:func:`configmix.safe_load` got
40 keyword argument `defaults` that allow the provision of an already 51 a keyword argument `defaults` that allow the provision of an
41 existing default configuration wheter all additional configuration 52 already existing default configuration into which all additional
42 settings are merged into. 53 configuration settings are merged into.
43 54
44 55
45 .. changelog:: 56 .. changelog::
46 :version: 0.6 57 :version: 0.6
47 :released: 2019-03-14 58 :released: 2019-03-14