annotate configmix/constants.py @ 409:2fc2e0bd0a56 v0.17b2

+++++ v0.17b2
author Franz Glasner <f.glasner@feldmann-mg.com>
date Fri, 19 Nov 2021 13:37:23 +0100
parents 8ce46c9e70ab
children f454889e41fa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
303
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 # -*- coding: utf-8 -*-
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
2 # :-
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
3 # :Copyright: (c) 2015-2021, Franz Glasner. All rights reserved.
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
4 # :License: BSD-3-Clause. See LICENSE.txt for details.
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
5 # :-
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
6 """Some important public contants
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
7
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
8 """
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9
358
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
10 from .compat import u as _u
303
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
11
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13 COMMENTS = [
358
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
14 _u("__comment"),
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
15 _u("__doc"),
303
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16 ]
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17 """Prefixes for comment configuration keys that are to be handled as
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
18 comments
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 """
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21
358
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
22 DIR_PREFIX = _u("<dir>")
303
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
23 """Prefix for configuration values to read other configuration files from
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
24 given directory
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
25
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
26 """
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27
358
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
28 DEL_VALUE = _u("{{::DEL::}}")
303
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
29 """Value for configuration items to signal that the corresponding
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
30 key-value is to be deleted when configurations are merged
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
31
2a2f5b86fe34 Move some important public constants into the .constants sub-module
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
32 """
305
f529ca46dd50 Implemented the "ref" namespace to get configuration tree references.
Franz Glasner <fzglas.hg@dom66.de>
parents: 303
diff changeset
33
358
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
34 REF_NAMESPACE = _u("ref")
305
f529ca46dd50 Implemented the "ref" namespace to get configuration tree references.
Franz Glasner <fzglas.hg@dom66.de>
parents: 303
diff changeset
35 """Special internal namespace used for implementation of tree
f529ca46dd50 Implemented the "ref" namespace to get configuration tree references.
Franz Glasner <fzglas.hg@dom66.de>
parents: 303
diff changeset
36 `references`
f529ca46dd50 Implemented the "ref" namespace to get configuration tree references.
Franz Glasner <fzglas.hg@dom66.de>
parents: 303
diff changeset
37
f529ca46dd50 Implemented the "ref" namespace to get configuration tree references.
Franz Glasner <fzglas.hg@dom66.de>
parents: 303
diff changeset
38 """
357
dd454e1efea4 Use constants for the names of the "None" and "Empty" filters
Franz Glasner <fzglas.hg@dom66.de>
parents: 305
diff changeset
39
358
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
40 NONE_FILTER = _u("None")
357
dd454e1efea4 Use constants for the names of the "None" and "Empty" filters
Franz Glasner <fzglas.hg@dom66.de>
parents: 305
diff changeset
41 """The public name of the special `None` filter"""
dd454e1efea4 Use constants for the names of the "None" and "Empty" filters
Franz Glasner <fzglas.hg@dom66.de>
parents: 305
diff changeset
42
358
8ce46c9e70ab Make the "u()" import in constants non exportable
Franz Glasner <fzglas.hg@dom66.de>
parents: 357
diff changeset
43 EMPTY_FILTER = _u("Empty")
357
dd454e1efea4 Use constants for the names of the "None" and "Empty" filters
Franz Glasner <fzglas.hg@dom66.de>
parents: 305
diff changeset
44 """The public name of the special `None` filter"""