equal
deleted
inserted
replaced
164 cwconfig = cwcfg.config_for(instance_name, debugmode=debug) |
164 cwconfig = cwcfg.config_for(instance_name, debugmode=debug) |
165 |
165 |
166 return wsgi_application_from_cwconfig(cwconfig) |
166 return wsgi_application_from_cwconfig(cwconfig) |
167 |
167 |
168 |
168 |
|
169 def pyramid_app(global_config, **settings): |
|
170 """Return a Pyramid WSGI application bound to a CubicWeb repository.""" |
|
171 config = Configurator(settings=settings) |
|
172 config.include('cubicweb.pyramid') |
|
173 return config.make_wsgi_app() |
|
174 |
|
175 |
169 def includeme(config): |
176 def includeme(config): |
170 """Set-up a CubicWeb instance. |
177 """Set-up a CubicWeb instance. |
171 |
178 |
172 The CubicWeb instance can be set in several ways: |
179 The CubicWeb instance can be set in several ways: |
173 |
180 |