Michael Merickel
2018-10-15 bda1306749c62ef4f11cfe567ed7d56c8ad94240
commit | author | age
c1eb0c 1 def includeme(config):
CM 2     config.add_view('.views.fixture_view')
3     config.add_view('.views.exception_view', context=RuntimeError)
4     config.add_view('.views.protected_view', name='protected.html')
5     config.add_view('.views.erroneous_view', name='error.html')
0c29cf 6     config.add_view(
MM 7         '.views.fixture_view',
8         name='dummyskin.html',
9         request_type='.views.IDummy',
10     )
6df90b 11     from .models import fixture, IFixture
0c29cf 12
c1eb0c 13     config.registry.registerUtility(fixture, IFixture)
CM 14     config.add_view('.views.fixture_view', name='another.html')