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

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

src/m/e/mediadrop-HEAD/mediadrop/config/environment.py   mediadrop(Download)
 
from mediadrop.config.routing import create_mapper, add_routes
from mediadrop.lib.templating import TemplateLoader
from mediadrop.model import Media, Podcast, init_model
from mediadrop.plugin import PluginManager, events
    # Create the Genshi TemplateLoader
    config['pylons.app_globals'].genshi_loader = TemplateLoader(
        search_path=paths['templates'] + plugin_mgr.template_loaders(),
        auto_reload=True,
        max_cache_size=100,