Did I find the right examples for you? yes no

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

        def make_fanstatic(app, global_config, **local_config):
    local_config = convert_config(local_config)
    # Look up injector factory by name.
    injector_name = local_config.pop('injector', 'topbottom')
    injector_factory = fanstatic.registry.InjectorRegistry.instance().get(injector_name)
    if injector_factory is None:
        raise ConfigurationError('No injector found for name %s' % injector_name)
    injector = injector_factory(local_config)
    return Fanstatic(app, injector=injector, **local_config)
        


src/i/c/icemac.addressbook-2.4.1/src/icemac/addressbook/startup.py   icemac.addressbook(Download)
    application = zope.app.wsgi.WSGIPublisherApplication(
        db, factory=HTTPPublicationRequestFactory, handle_errors=True)
    application = fanstatic.make_fanstatic(application, IGNORED, bottom=True)
 
    # Create the application, notify subscribers.

src/f/a/fanstatic-1.0a5/tests/test_config.py   fanstatic(Download)
from fanstatic.config import convert_config
from fanstatic import make_injector, make_publisher, make_fanstatic
 
 
def test_convert_config():
        'publisher_signature': 'foo',
    }
    fanstatic = make_fanstatic(None, {}, **d)
    assert fanstatic.trigger == '/foo/'
    assert fanstatic.app.config == {