[Checkins] [zopefoundation/zope.interface] 46781f: Make @implementer and classImplements not re-decla...

Jason Madden noreply at github.com
Wed Apr 8 14:18:10 CEST 2020


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zope.interface
  Commit: 46781f87ccbc02ae3d884e2dbe57b799c3804077
      https://github.com/zopefoundation/zope.interface/commit/46781f87ccbc02ae3d884e2dbe57b799c3804077
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M CHANGES.rst
    M docs/api/declarations.rst
    M src/zope/interface/declarations.py
    M src/zope/interface/tests/test_declarations.py

  Log Message:
  -----------
  Make @implementer and classImplements not re-declare redundant interfaces.

classImplementsOnly and @implementer_only can still be used to do that.


  Commit: 4cb3e63d3f45f0d4337bf890ec8508c3072be772
      https://github.com/zopefoundation/zope.interface/commit/4cb3e63d3f45f0d4337bf890ec8508c3072be772
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M docs/README.rst
    M src/zope/interface/declarations.py
    M src/zope/interface/tests/test_declarations.py
    M src/zope/interface/tests/test_registry.py

  Log Message:
  -----------
  Special case the base Interface in @implementer/classImplements to skip the redundancy detection for the sake of plone.app.caching.


  Commit: 97c0fbc4a3a532d1b2ec044994422d1a4ada4754
      https://github.com/zopefoundation/zope.interface/commit/97c0fbc4a3a532d1b2ec044994422d1a4ada4754
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M src/zope/interface/declarations.py
    M src/zope/interface/tests/test_declarations.py

  Log Message:
  -----------
  Fix implementerOnly when duplicating something inherited from the parent.

Seen in plone.app.testing as a problem in Products.GenericSetup.

Added tests for that.


  Commit: 76203ebcd3736f598fc858bf53de9738ae523858
      https://github.com/zopefoundation/zope.interface/commit/76203ebcd3736f598fc858bf53de9738ae523858
  Author: Jason Madden <jamadden at gmail.com>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

  Changed paths:
    M CHANGES.rst
    M docs/README.rst
    M docs/api/declarations.rst
    M src/zope/interface/declarations.py
    M src/zope/interface/tests/test_declarations.py
    M src/zope/interface/tests/test_registry.py

  Log Message:
  -----------
  Merge pull request #203 from zopefoundation/issue199

Make @implementer and classImplements not add redundant interfaces


Compare: https://github.com/zopefoundation/zope.interface/compare/bf4f437b0c6f...76203ebcd373


More information about the checkins mailing list