Skip to content

Commit

Permalink
Add fake former_dotted_names attribute to do not broke versioning whe…
Browse files Browse the repository at this point in the history
…n there are some taxonomies behaviors
  • Loading branch information
cekk committed Nov 4, 2024
1 parent 0ad62e0 commit 7bd064e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
7 changes: 7 additions & 0 deletions src/collective/taxonomy/behavior.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7bd064e

Please sign in to comment.