[Checkins] [zopefoundation/Zope] 91d741: Be explicit about escaping `"`.

GitHub noreply at github.com
Mon May 15 20:26:24 CEST 2017


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/Zope
  Commit: 91d7411176b253b5c17d45d00831f4a6a058c74a
      https://github.com/zopefoundation/Zope/commit/91d7411176b253b5c17d45d00831f4a6a058c74a
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/App/Management.py
    M src/OFS/Image.py
    M src/OFS/ObjectManager.py
    M src/OFS/PropertyManager.py
    M src/OFS/PropertySheets.py
    M src/OFS/Uninstalled.py
    M src/OFS/role.py
    M src/Products/PageTemplates/tests/secure.pt
    M src/Products/PageTemplates/tests/test_persistenttemplate.py
    M src/ZPublisher/Converters.py
    M src/ZPublisher/HTTPRequest.py
    M src/ZPublisher/HTTPResponse.py
    M src/ZTUtils/Zope.py
    M src/ZTUtils/tests/testZope.py

  Log Message:
  -----------
  Be explicit about escaping `"`.

html.escape has its second argument quote=True by default, while
cgi.escape had default=False


  Commit: af05a78c6f576031f650e3f1ff4b1f26cebd33ac
      https://github.com/zopefoundation/Zope/commit/af05a78c6f576031f650e3f1ff4b1f26cebd33ac
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/Products/Five/browser/tests/test_menu.py
    M src/Testing/ZopeTestCase/zopedoctest/FunctionalDocTest.txt
    M src/Testing/ZopeTestCase/zopedoctest/testFunctionalDocTest.py
    M src/ZPublisher/tests/testHTTPResponse.py
    M src/ZTUtils/tests/testZope.py
    M tox.ini

  Log Message:
  -----------
  Fix tests depending on dictionary order.


  Commit: e18f824240051302014f88fe38a109c7ed75c7e5
      https://github.com/zopefoundation/Zope/commit/e18f824240051302014f88fe38a109c7ed75c7e5
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/OFS/DTMLDocument.py
    M src/OFS/DTMLMethod.py
    M src/OFS/tests/testSimpleItem.py
    M src/OFS/tests/test_DTMLDocument.py
    M src/OFS/tests/test_DTMLMethod.py
    M src/OFS/tests/test_subscribers.py
    M src/Products/Five/browser/tests/resource.txt
    M src/Products/Five/browser/tests/resource_ftest.txt
    M src/Products/Five/component/makesite.txt
    M src/Testing/ZopeTestCase/testFunctional.py
    M src/ZPublisher/tests/testHTTPResponse.py
    M src/ZPublisher/tests/test_WSGIPublisher.py

  Log Message:
  -----------
  Another large set of Python 3 fixes.


  Commit: 8346335673a5c1715571164d044c45683fabe39b
      https://github.com/zopefoundation/Zope/commit/8346335673a5c1715571164d044c45683fabe39b
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/App/tests/testImageFile.py
    M src/App/tests/test_ApplicationManager.py
    M src/OFS/tests/testApplication.py
    M src/OFS/tests/testFileAndImage.py
    M src/OFS/tests/testObjectManager.py
    M src/OFS/tests/testProperties.py
    M src/OFS/tests/test_DTMLDocument.py
    M src/OFS/tests/test_DTMLMethod.py
    M src/OFS/tests/test_Uninstalled.py
    M src/Products/Five/browser/tests/resource.txt
    M src/Products/Five/browser/tests/test_pagetemplatefile.py
    M src/Products/PageTemplates/tests/testExpressions.py
    M src/Testing/ZopeTestCase/testPortalTestCase.py
    M src/ZPublisher/tests/testHTTPRequest.py
    M src/ZPublisher/tests/testHTTPResponse.py
    M src/ZPublisher/tests/test_WSGIPublisher.py
    M src/ZPublisher/tests/test_pubevents.py

  Log Message:
  -----------
  Use `self.assertIsInstance`.


  Commit: 25d959ef2a15796e8149a0eb59791d48f5b1f8ff
      https://github.com/zopefoundation/Zope/commit/25d959ef2a15796e8149a0eb59791d48f5b1f8ff
  Author: Hanno Schlichting <hanno at hannosch.eu>
  Date:   2017-05-15 (Mon, 15 May 2017)

  Changed paths:
    M src/ZTUtils/Lazy.py

  Log Message:
  -----------
  Change `ZTUtils.Lazy` to support slicing via `_getitem__`.

`__getslice__` is deprecated since Python 2.0 :))

This adds support for extended slicing and the step argument. A lot
of the classes defer to one common implementation for slicing support
in the abstract Lazy subclass, but continue to implement their own
efficient single key lookup.


Compare: https://github.com/zopefoundation/Zope/compare/00146ca8de1b...25d959ef2a15


More information about the checkins mailing list