cubicweb/skeleton/cubicweb_CUBENAME/__init__.py.tmpl
changeset 11968 bb0dfc7d2d0e
parent 11945 ef6b18c56b5a
child 12009 a939b3a18d8e
equal deleted inserted replaced
11967:83739be20fab 11968:bb0dfc7d2d0e
     1 """cubicweb-%(cubename)s application package
     1 """cubicweb-%(cubename)s application package
     2 
     2 
     3 %(longdesc)s
     3 %(longdesc)s
     4 """
     4 """
     5 
       
     6 
       
     7 def pyramid_main(global_config, **settings):
       
     8     """Return a Pyramid WSGI application bound to a CubicWeb repository."""
       
     9     from pyramid.config import Configurator
       
    10     config = Configurator(settings=settings)
       
    11     config.include('cubicweb.pyramid')
       
    12     config.scan()
       
    13     return config.make_wsgi_app()