Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/p/l/plone.protect-3.0.0/plone/protect/utils.py   plone.protect(Download)
from AccessControl.requestmethod import _buildFacade
from plone.protect.authenticator import createToken
from zope.globalrequest import getRequest
 
import inspect
        try:
            name = callable.__name__
            exec _buildFacade(name, spec, callable.__doc__) in facade_globs
        except TypeError:  # BBB: Zope 2.10
            name = '_facade'
            exec _buildFacade(spec, callable.__doc__) in facade_globs

src/p/l/plone.app.protect-1.0b1/plone/app/protect/utils.py   plone.app.protect(Download)
from AccessControl.requestmethod import _buildFacade
import inspect
 
_default = []
 
    # Build a facade, with a reference to our locally-scoped _curried
    facade_globs = dict(_curried=_curried, _default=_default)
    exec _buildFacade(spec, callable.__doc__) in facade_globs
    return facade_globs['_facade']