Skip to content

Commit

Permalink
added ZMS4/Py2 function pybytes() for template compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Oct 2, 2024
1 parent c7f92a1 commit fea97c5
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 @@ -71,6 +71,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 fea97c5

Please sign in to comment.