Skip to content

Commit

Permalink
Merge pull request #169 from collective/former_dotted_names
Browse files Browse the repository at this point in the history
Add fake former_dotted_names attribute
  • Loading branch information
petschki authored Nov 5, 2024
2 parents 0ad62e0 + 7bd064e commit c6c15a3
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 c6c15a3

Please sign in to comment.