Mercurial > kallithea
comparison rhodecode/controllers/error.py @ 2031:82a88013a3fd
merge 1.3 into stable
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 26 Feb 2012 17:25:09 +0200 |
parents | bf263968da47 a76e9bacbedc |
children | 3563bb7b4b82 |
comparison
equal
deleted
inserted
replaced
2005:ab0e122b38a7 | 2031:82a88013a3fd |
---|---|
5 | 5 |
6 RhodeCode error controller | 6 RhodeCode error controller |
7 | 7 |
8 :created_on: Dec 8, 2010 | 8 :created_on: Dec 8, 2010 |
9 :author: marcink | 9 :author: marcink |
10 :copyright: (C) 2009-2011 Marcin Kuzminski <marcin@python-works.com> | 10 :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com> |
11 :license: GPLv3, see COPYING for more details. | 11 :license: GPLv3, see COPYING for more details. |
12 """ | 12 """ |
13 # This program is free software: you can redistribute it and/or modify | 13 # This program is free software: you can redistribute it and/or modify |
14 # it under the terms of the GNU General Public License as published by | 14 # it under the terms of the GNU General Public License as published by |
15 # the Free Software Foundation, either version 3 of the License, or | 15 # the Free Software Foundation, either version 3 of the License, or |
52 | 52 |
53 def document(self): | 53 def document(self): |
54 resp = request.environ.get('pylons.original_response') | 54 resp = request.environ.get('pylons.original_response') |
55 c.rhodecode_name = config.get('rhodecode_title') | 55 c.rhodecode_name = config.get('rhodecode_title') |
56 | 56 |
57 log.debug('### %s ###', resp.status) | 57 log.debug('### %s ###' % resp.status) |
58 | 58 |
59 e = request.environ | 59 e = request.environ |
60 c.serv_p = r'%(protocol)s://%(host)s/' \ | 60 c.serv_p = r'%(protocol)s://%(host)s/' \ |
61 % {'protocol': e.get('wsgi.url_scheme'), | 61 % {'protocol': e.get('wsgi.url_scheme'), |
62 'host': e.get('HTTP_HOST'), } | 62 'host': e.get('HTTP_HOST'), } |