Did I find the right examples for you? yes no

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

src/p/y/pyramid-flatpages-0.0.1-mdfix/flatpages/extensibility.py   pyramid-flatpages(Download)
from .routes import FlatPagesPredicate
from .views import handle_flatpage
from .renderers.defaults import renderers as default_renderers
 
def flatpages_root(config, insert_renderers=True, root_path=''):
 
    config.add_route('', '*subpath', handle_flatpage,
                     custom_predicates=[FlatPagesPredicate()])
 
def include_me(config, module_name='flatpages'):