Skip to content

Commit

Permalink
Merge pull request #38 from eea/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
avoinea authored Jul 29, 2024
2 parents a44e421 + a3e4cf7 commit d590b90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 41 deletions.
7 changes: 6 additions & 1 deletion docs/HISTORY.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
Changelog
=========

4.2 - (2024-07-29)
---------------------------
* Change: Cleanup code comments and pdb
[iugin]

4.1 - (2024-07-25)
---------------------------
* Change: Fix: Latest eea.coremetadata release has issues - refs #273093
* Fix: Latest eea.coremetadata release has issues - refs #273093
[avoinea]

4.0 - (2024-06-21)
Expand Down
39 changes: 0 additions & 39 deletions eea/coremetadata/behaviors/vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,54 +43,15 @@ def eea_other_organisations(context):
def organisations_vocabulary(context):
"""organisations_vocabulary"""

# import pdb
# pdb.set_trace()
return eea_other_organisations(context)
# vocabulary = get_vocabulary(
# context, "collective.taxonomy.eeaorganisationstaxonomy"
# )

# terms = [
# SimpleTerm(key, key, val.encode("ascii", "ignore").decode("ascii"))
# for val, key in vocabulary
# ]
# # import pdb
# # pdb.set_trace()
# terms.sort(key=lambda t: t.title)

# return SimpleVocabulary(terms)


@provider(IVocabularyFactory)
def index_organisations_vocabulary(context):
"""index_organisations_vocabulary"""

# import pdb
# pdb.set_trace()
return eea_other_organisations(context)

# catalog_values = get_catalog_values(
# context, "taxonomy_eeaorganisationstaxonomy"
# )
# vocabulary = get_vocabulary(
# context, "collective.taxonomy.eeaorganisationstaxonomy"
# )
# terms = []

# # import pdb
# # pdb.set_trace()
# for val, key in vocabulary:
# if key in catalog_values:
# terms.append(
# SimpleTerm(
# key, key, val.encode("ascii", "ignore").decode("ascii")
# )
# )

# terms.sort(key=lambda t: t.title)

# return SimpleVocabulary(terms)


@provider(IVocabularyFactory)
def publisher_vocabulary(context):
Expand Down
2 changes: 1 addition & 1 deletion eea/coremetadata/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.1
4.2

0 comments on commit d590b90

Please sign in to comment.