Use strings for setting-constants

more clear when inspecting existing settings; also potentially useful
to avoid circular imports (because you may hard-code using strings,
rather than import the constants)
This commit is contained in:
Klaas van Schelven
2024-06-14 15:34:42 +02:00
parent 4988704a2d
commit 8b63bb0a00

View File

@@ -11,10 +11,10 @@ _MEBIBYTE = 1024 * _KIBIBYTE
# CB means "create by"
CB_ANYBODY = 0
CB_MEMBERS = 1
CB_ADMINS = 2
CB_NOBODY = 3
CB_ANYBODY = "CB_ANYBODY"
CB_MEMBERS = "CB_MEMBERS"
CB_ADMINS = "CB_ADMINS"
CB_NOBODY = "CB_NOBODY"
DEFAULTS = {