[Checkins] SVN: grokcore.view/trunk/s Moving the publication "hack" from ``grok`` to ``grokcore.view``
Wichert Akkerman
wichert at wiggy.net
Wed Nov 3 10:16:42 EDT 2010
On 11/3/10 12:02 , Souheil CHELFOUH wrote:
> Added: grokcore.view/trunk/src/grokcore/view/publication.py
> ===================================================================
> --- grokcore.view/trunk/src/grokcore/view/publication.py (rev 0)
> +++ grokcore.view/trunk/src/grokcore/view/publication.py 2010-11-03 11:02:35 UTC (rev 118141)
> @@ -0,0 +1,70 @@
> +# -*- coding: utf-8 -*-
> +from zope.security.proxy import removeSecurityProxy
> +from zope.security.checker import selectChecker
> +from zope.publisher.interfaces.browser import IBrowserView
> +from zope.app.publication.browser import BrowserPublication
> +from grokcore.view import IGrokSecurityView
> +
> +
> +class ZopePublicationSansProxy(object):
> + """Mixin that makes a publisher remove security proxies.
> +
> + This mixin overrides three methods from the `IPublication`
> + interface (defined in `zope.publisher.interfaces`) to alter their
> + security behavior. The normal Zope machinery wraps a security
> + proxy around the application object returned by
> + `getApplication()`, and around each of the objects returned as
> + `traverseName()` is then called for each URL component.
Should that 'Zope' be 'zope.publisher' or so? If I remember correctly
Zope does not do any proxy wrapping.
Wichert.
More information about the checkins
mailing list