Skip to content

Commit

Permalink
added compatibility to obsolete py2-function pybytes() (#344)
Browse files Browse the repository at this point in the history
After update old ZMS4/Py2 templates/py-script string processing errors with pybytes() may occur. This former charset fixing function does not exist anymore. For a smother updating it is synonymized with pystr() now.
  • Loading branch information
drfho authored Dec 11, 2024
1 parent dd1383d commit 5d01b1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Products/zms/standard.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ def pystr(v, encoding='utf-8', errors='strict'):
v = str(v)
return v

security.declarePublic('pybytes')
# Just for compatibility of old ZMS4 templates.
pybytes = pystr

# Umlauts
umlaut_map = {
Expand Down

0 comments on commit 5d01b1f

Please sign in to comment.