equal
deleted
inserted
replaced
10 # FOR A PARTICULAR PURPOSE. |
10 # FOR A PARTICULAR PURPOSE. |
11 # |
11 # |
12 |
12 |
13 __docformat__ = 'restructuredtext' |
13 __docformat__ = 'restructuredtext' |
14 |
14 |
15 |
|
16 # import standard library |
|
17 |
|
18 # import interfaces |
|
19 from pyams_content.features.redirect.interfaces import IRedirectionManager |
|
20 |
|
21 # import packages |
|
22 from pyramid.exceptions import NotFound |
15 from pyramid.exceptions import NotFound |
23 from pyramid.httpexceptions import HTTPNotFound |
16 from pyramid.httpexceptions import HTTPNotFound |
|
17 |
|
18 from pyams_content.features.redirect.interfaces import IRedirectionManager |
24 |
19 |
25 |
20 |
26 def redirect_tween_factory(handler, registry): |
21 def redirect_tween_factory(handler, registry): |
27 """Redirect tween factory |
22 """Redirect tween factory |
28 |
23 |