Skip to content

Commit

Permalink
- Pin DocumentTemplate 3.2.2 for less quoting, it is to database-…
Browse files Browse the repository at this point in the history
…specific
  • Loading branch information
dataflake committed Feb 5, 2020
1 parent df82dad commit 7c7b698
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Changelog
3.0.13 (unreleased)
-------------------

- Pin ``DocumentTemplate`` 3.2.2 for less quoting, it is to database-specific


3.0.12 (2020-02-03)
-------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
'Zope >= 4.0b5',
'Missing',
'Record',
'DocumentTemplate >= 3.2.1',
'DocumentTemplate >= 3.2.2',
],
include_package_data=True,
zip_safe=False,
Expand Down
8 changes: 4 additions & 4 deletions src/Shared/DC/ZRDB/tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def test_sql_quote___embedded_backslash(self):
TO_QUOTE = 'embedded \\backslash'
conn = self._makeOne('conn', '', 'conn string')
self.assertEqual(conn.sql_quote__(TO_QUOTE),
"'embedded \\\\backslash'")
# Show for good measure that the seeming four backslashes
# are really two, when you look at the raw string.
"'embedded \\backslash'")
# Show for good measure that the seeming two backslashes
# are really one, when you look at the raw string.
self.assertEqual(conn.sql_quote__(TO_QUOTE),
r"'embedded \\backslash'")
r"'embedded \backslash'")

def test_sql_quote___embedded_double_quote(self):
# As it turns out, escaping double quotes will break
Expand Down

0 comments on commit 7c7b698

Please sign in to comment.