Skip to content

Commit

Permalink
Merge pull request #13 from eea/develop
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
avoinea authored Nov 15, 2022
2 parents 823cf75 + 6ed42b7 commit d7b8004
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/HISTORY.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

2.4 - (2022-11-15)
---------------------------
* Change: Restore old encoding for restapi
[iulianpetchesi refs #153129]

2.3 - (2022-11-14)
---------------------------
* Change: Rename controlpanel id to avoid conflicts with plone.formwidget.geolocation
Expand Down
6 changes: 3 additions & 3 deletions eea/geolocation/restapi/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def reply(self):
vocabulary = taxonomy.makeVocabulary('en')

for value, key in vocabulary.iterEntries():
value = value.encode('latin-1', 'ignore').decode('latin-1')
value = value.encode('ascii', 'ignore').decode('ascii')

if identifier not in value:
identifier = value
Expand Down Expand Up @@ -88,7 +88,7 @@ def reply(self):

data = {}
for value, key in vocabulary.iterEntries():
value = value.encode('latin-1', 'ignore').decode('latin-1')
value = value.encode('ascii', 'ignore').decode('ascii')

if identifier not in value:
identifier = value
Expand Down Expand Up @@ -121,7 +121,7 @@ def reply(self):
vocabulary = taxonomy.makeVocabulary('en')

for value, key in vocabulary.iterEntries():
value = value.encode('latin-1', 'ignore').decode('latin-1')
value = value.encode('ascii', 'ignore').decode('ascii')

if identifier not in value:
identifier = value
Expand Down
2 changes: 1 addition & 1 deletion eea/geolocation/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3
2.4

0 comments on commit d7b8004

Please sign in to comment.