|
a/Allura/allura/controllers/oembed.py |
|
b/Allura/allura/controllers/oembed.py |
|
... |
|
... |
11 |
from tg import expose, redirect, flash, config
|
11 |
from tg import expose, redirect, flash, config
|
12 |
from tg.decorators import override_template
|
12 |
from tg.decorators import override_template
|
13 |
from webob import exc
|
13 |
from webob import exc
|
14 |
from pylons import c, g
|
14 |
from pylons import c, g
|
15 |
|
15 |
|
16 |
from allura.lib.base import BaseController
|
16 |
from allura.lib.base import WsgiDispatchController
|
17 |
|
17 |
|
18 |
log = logging.getLogger(__name__)
|
18 |
log = logging.getLogger(__name__)
|
19 |
|
19 |
|
20 |
class OEmbedController(BaseController):
|
20 |
class OEmbedController(WsgiDispatchController):
|
21 |
'''Controller that serves up oembedded resources'''
|
21 |
'''Controller that serves up oembedded resources'''
|
22 |
|
22 |
|
23 |
@expose('jinja:oembed/generic.html')
|
23 |
@expose('jinja:oembed/generic.html')
|
24 |
def index(self, href, **kw):
|
24 |
def index(self, href, **kw):
|
25 |
try:
|
25 |
try:
|