[Checkins] [zopefoundation/zope.publisher] 0565a8: Compatibility with PythonScripts (#10)

GitHub noreply at github.com
Thu Feb 9 18:59:45 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.publisher
  Commit: 0565a81faf06b48e1192e30d20603e979ff53d12
      https://github.com/zopefoundation/zope.publisher/commit/0565a81faf06b48e1192e30d20603e979ff53d12
  Author: Johannes Raggam <thetetet at gmail.com>
  Date:   2017-02-09 (Thu, 09 Feb 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/publisher/publish.py
    M src/zope/publisher/tests/test_mapply.py

  Log Message:
  -----------
  Compatibility with PythonScripts (#10)

Compatibility with PythonScripts:

* Needed for current versions of Products/CMFCore/FSPythonScript.py.

* Use ``six`` to access the function object and function code in ``zope.publisher.publisher.unwrapMethod``. 
  This restores compatibility with Products.PythonScripts, where parameters were not extracted.

* Use both new and old locations for __code__

* Added test showing we can still handle a pre Python 2.6 method.




More information about the checkins mailing list