[Checkins] [zopefoundation/Zope] fecd92: Fix str/bytes confusion on add DTMLDocument/DTMLMe...

GitHub noreply at github.com
Tue Nov 20 12:41:35 CET 2018


  Branch: refs/heads/fix-str-bytes-confusion-on-dtml-add
  Home:   https://github.com/zopefoundation/Zope
  Commit: fecd9262fdb096596e511c6316eb7b86588aa094
      https://github.com/zopefoundation/Zope/commit/fecd9262fdb096596e511c6316eb7b86588aa094
  Author: Robert Buchholz <rbu at goodpoint.de>
  Date:   2018-11-20 (Tue, 20 Nov 2018)

  Changed paths:
    M src/OFS/DTMLDocument.py
    M src/OFS/DTMLMethod.py
    M src/Testing/ZopeTestCase/testFunctional.py

  Log Message:
  -----------
  Fix str/bytes confusion on add DTMLDocument/DTMLMethod

DTML documents need to be stored as native strings ("str" in both Py2 and Py3),
which was implemented in #265 for the manage_upload case (create a document,
then upload the content).

This commit introduces the conditional type conversion for the "add" case
as well (create a document with initial uploaded content).



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the checkins mailing list