1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
1 # copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
3 # |
3 # |
4 # This file is part of CubicWeb. |
4 # This file is part of CubicWeb. |
5 # |
5 # |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
6 # CubicWeb is free software: you can redistribute it and/or modify it under the |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more |
14 # details. |
14 # details. |
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """WSGI request handler for cubicweb |
18 """WSGI request handler for cubicweb""" |
19 |
|
20 """ |
|
21 |
19 |
22 |
20 |
23 |
21 |
24 __docformat__ = "restructuredtext en" |
22 __docformat__ = "restructuredtext en" |
25 |
23 |
26 from itertools import chain, repeat, izip |
24 from itertools import chain, repeat, izip |
27 |
25 |
28 from cubicweb import AuthenticationError |
26 from cubicweb import AuthenticationError |
29 from cubicweb.web import Redirect, DirectResponse, StatusResponse, LogOut |
27 from cubicweb.web import DirectResponse |
30 from cubicweb.web.application import CubicWebPublisher |
28 from cubicweb.web.application import CubicWebPublisher |
31 from cubicweb.wsgi.request import CubicWebWsgiRequest |
29 from cubicweb.wsgi.request import CubicWebWsgiRequest |
32 |
30 |
33 # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html |
31 # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html |
34 STATUS_CODE_TEXT = { |
32 STATUS_CODE_TEXT = { |