Skip to content

Commit

Permalink
Make compatible with Zope 4 (#12)
Browse files Browse the repository at this point in the history
Make the registration of the ``FileETag`` adapter conditional on the environment as Zope registers this adapter explicitly in ``Products.Five.browser``.
  • Loading branch information
goschtl authored and Michael Howitz committed Dec 10, 2019
1 parent 6360ac9 commit a17bbbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

- Add support for Python 3.8.

- Make the registration of the ``FileETag`` adapter conditional on the environment
as Zope registers this adapter explicitly in ``Products.Five.browser``.
See `#12 <https://github.com/zopefoundation/zope.browserresource/pull/12>`_.


4.3 (2018-10-05)
================
Expand Down
5 changes: 3 additions & 2 deletions src/zope/browserresource/configure.zcml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<configure xmlns="http://namespaces.zope.org/zope">
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:zcml="http://namespaces.zope.org/zcml">

<include file="meta.zcml" package="zope.component" />
<include file="meta.zcml" package="zope.security" />

<adapter factory=".resource.AbsoluteURL" />
<adapter factory=".file.FileETag" />
<adapter factory=".file.FileETag" zcml:condition="not-installed Products.Five"/>

<view
for="zope.component.interfaces.ISite"
Expand Down

0 comments on commit a17bbbb

Please sign in to comment.