-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Port whitelist creation from zope.browserpage #643
Conversation
3e8664c
to
c9f4938
Compare
I ported the tests from branch |
Okay, I've fixed that failing test and cleaned up the implementation a bit. Rather than relying on replacing I'm waiting for the Plone tests to finish, but I'm hopeful. |
@jaroel Can you clarify how important a usecase you think the publish traverse adapter is? It's possible to add a |
@MatthewWilkes , @icemac, I'm unaware of code that uses the IPublishTraverse-as-adapter approach, so the current approach should work just fine by the looks of it. |
This PR looks okay to me, I think a test for |
zopefoundation/zope.browserpage#7 currently fails. |
@icemac Yep, it does. I've not had a chance to look at this again yet, but my instinct is that the problem is the test, not the code. It's testing that |
I have no real idea if the code is wrong or the test. But in zopefoundation/zope.browserpage@6ab5166 I attempted to adapt the test to show what's actually going wrong with the misconfigured view. |
After zopefoundation/zope.browserpage#7 is accepted, merged and released. The |
Together with zopefoundation/zope.browserpage#7 this fixes #397.
All Plone tests are green with that (see plone/buildout.coredev#588)
Open points:
allowed_interface
.