From 0f0bba48456dd5120e914df5740cf96ffb851aaa Mon Sep 17 00:00:00 2001 From: Sven Eberth Date: Fri, 14 Feb 2025 14:04:10 +0100 Subject: [PATCH 1/2] chore: Disable all compatibility flags by default --- src/viur/core/config.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/viur/core/config.py b/src/viur/core/config.py index 6945735fc..26004ad63 100644 --- a/src/viur/core/config.py +++ b/src/viur/core/config.py @@ -800,12 +800,12 @@ class Conf(ConfigType): # FIXME VIUR4: REMOVE ALL COMPATIBILITY MODES! compatibility: Multiple[str] = [ - "json.bone.structure.camelcasenames", # use camelCase attribute names (see #637 for details) - "json.bone.structure.keytuples", # use classic structure notation: `"structure = [["key", {...}] ...]` (#649) - "json.bone.structure.inlists", # dump skeleton structure with every JSON list response (#774 for details) - "tasks.periodic.useminutes", # Interpret int/float values for @PeriodicTask as minutes - # instead of seconds (#1133 for details) - "bone.select.structure.values.keytuple", # render old-style tuple-list in SelectBone's values structure (#1203) + # "json.bone.structure.camelcasenames", # use camelCase attribute names (see #637 for details) + # "json.bone.structure.keytuples", # use classic structure notation: `"structure = [["key", {...}] ...]` (#649) + # "json.bone.structure.inlists", # dump skeleton structure with every JSON list response (#774 for details) + # "tasks.periodic.useminutes", # Interpret int/float values for @PeriodicTask as minutes + # # instead of seconds (#1133 for details) + # "bone.select.structure.values.keytuple", # render old-style tuple-list in SelectBone's values structure (#1203) ] """Backward compatibility flags; Remove to enforce new style.""" From c1f4f8b59d89b4ee372969f539c86fe40cb80ed6 Mon Sep 17 00:00:00 2001 From: Sven Eberth Date: Fri, 14 Feb 2025 16:19:43 +0100 Subject: [PATCH 2/2] pep8 --- src/viur/core/config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/viur/core/config.py b/src/viur/core/config.py index 26004ad63..7948a77bb 100644 --- a/src/viur/core/config.py +++ b/src/viur/core/config.py @@ -805,7 +805,8 @@ class Conf(ConfigType): # "json.bone.structure.inlists", # dump skeleton structure with every JSON list response (#774 for details) # "tasks.periodic.useminutes", # Interpret int/float values for @PeriodicTask as minutes # # instead of seconds (#1133 for details) - # "bone.select.structure.values.keytuple", # render old-style tuple-list in SelectBone's values structure (#1203) + # "bone.select.structure.values.keytuple", # render old-style tuple-list in SelectBone's + # values structure (#1203) ] """Backward compatibility flags; Remove to enforce new style."""