|
a/Allura/allura/lib/base.py |
|
b/Allura/allura/lib/base.py |
|
... |
|
... |
20 |
|
20 |
|
21 |
def _cleanup_request(self):
|
21 |
def _cleanup_request(self):
|
22 |
raise NotImplementedError, '_cleanup_request'
|
22 |
raise NotImplementedError, '_cleanup_request'
|
23 |
|
23 |
|
24 |
def __call__(self, environ, start_response):
|
24 |
def __call__(self, environ, start_response):
|
25 |
host = environ['HTTP_HOST'].lower()
|
|
|
26 |
if host == config['oembed.host']:
|
|
|
27 |
from allura.controllers.oembed import OEmbedController
|
|
|
28 |
return OEmbedController()(environ, start_response)
|
|
|
29 |
try:
|
25 |
try:
|
30 |
self._setup_request()
|
26 |
self._setup_request()
|
31 |
response = super(WsgiDispatchController, self).__call__(environ, start_response)
|
27 |
response = super(WsgiDispatchController, self).__call__(environ, start_response)
|
32 |
return self.cleanup_iterator(response)
|
28 |
return self.cleanup_iterator(response)
|
33 |
except exc.HTTPException, err:
|
29 |
except exc.HTTPException, err:
|