Mercurial > bitten > bitten-test
view bitten/__init__.py @ 645:8c824b14e1c5
0.6dev: Switching `master.py` to use new `self._send_response()` and `self._send_error() methods. Simplifies code, but most importantly for errors it allows a consistent method for transmitting plain-text error messages to the slave (that the slave will now output as part of debug logging).
Raising Trac HTTP* errors actually causes full rendering of an HTML error page as response, which is both inefficient as well as making it near-impossible to extract the 'hidden' message from the master.
author | osimons |
---|---|
date | Mon, 24 Aug 2009 12:00:43 +0000 |
parents | 5f3e66e5b451 |
children | cc1fefd5d814 |
line wrap: on
line source
# -*- coding: utf-8 -*- # # Copyright (C) 2007 Edgewall Software # Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de> # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://bitten.edgewall.org/wiki/License. __docformat__ = 'restructuredtext en' try: __version__ = __import__('pkg_resources').get_distribution('Bitten').version except: try: __version__ = __import__('pkg_resources').get_distribution( 'Bitten-Slave').version except: pass