From 7bd064e54254c8699e2ebc243e94d023d2c75ee8 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Mon, 4 Nov 2024 14:37:53 +0100 Subject: [PATCH] Add fake former_dotted_names attribute to do not broke versioning when there are some taxonomies behaviors --- CHANGES.rst | 3 ++- src/collective/taxonomy/behavior.py | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index 3476957..0abf37f 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,7 +4,8 @@ Changes 3.1.5 (unreleased) ------------------ -- Nothing changed yet. +- Add fake former_dotted_names attribute to do not broke versioning when there are some taxonomies behaviors. + [cekk] 3.1.4 (2024-10-24) diff --git a/src/collective/taxonomy/behavior.py b/src/collective/taxonomy/behavior.py index 4838ecd..613b965 100644 --- a/src/collective/taxonomy/behavior.py +++ b/src/collective/taxonomy/behavior.py @@ -187,6 +187,13 @@ def interface(self): def marker(self): return getattr(generated, self.short_name) + @property + def former_dotted_names(self): + """ + This is needed to not broke versioning + """ + return self.name + def generateInterface(self): logger.debug("generating interface for %s" % self.short_name)