[Checkins] [zopefoundation/zope.security] ab429e: Fix default values for Permission's title and desc...

GitHub noreply at github.com
Thu Nov 30 19:05:55 CET 2017


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.security
  Commit: ab429edc94e3d6db26ff398672c716982a5d64c0
      https://github.com/zopefoundation/zope.security/commit/ab429edc94e3d6db26ff398672c716982a5d64c0
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2017-11-30 (Thu, 30 Nov 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/interfaces.py
    M src/zope/security/permission.py
    M src/zope/security/tests/test_permission.py
    M src/zope/security/zcml.py

  Log Message:
  -----------
  Fix default values for Permission's title and description in Py2

And test this. This applies to both the class and the ZCML directive.

Also adjust IPermission to use NativeStringLine for ``id``, since
that's what ZCML has always been creating (it uses an Id, which
subclasses NativeStringLine), and what's typically written in source
code. Test that the permissions created from ZCML are valid with this
change.


  Commit: 6b79a8ef5ec9b94b2a93128c000a172f248fdc6e
      https://github.com/zopefoundation/zope.security/commit/6b79a8ef5ec9b94b2a93128c000a172f248fdc6e
  Author: Jason Madden <jason+github at nextthought.com>
  Date:   2017-11-30 (Thu, 30 Nov 2017)

  Changed paths:
    M CHANGES.rst
    M src/zope/security/interfaces.py
    M src/zope/security/permission.py
    M src/zope/security/tests/test_permission.py
    M src/zope/security/zcml.py

  Log Message:
  -----------
  Merge pull request #49 from zopefoundation/issue48

Fix default values for Permission's title and description in Py2


Compare: https://github.com/zopefoundation/zope.security/compare/4844db9ddcc5...6b79a8ef5ec9


More information about the checkins mailing list