"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "masakari/exception.py" between
masakari-10.0.2.tar.gz and masakari-10.0.3.tar.gz

About: OpenStack Masakari provides "Instances High Availability Service" for OpenStack clouds by automatically recovering failed Instances (currently for KVM-based Virtual Machine(VM)s).
The "Victoria" series (maintained release).

exception.py  (masakari-10.0.2):exception.py  (masakari-10.0.3)
skipping to change at line 45 skipping to change at line 45
from masakari.i18n import _ from masakari.i18n import _
from masakari import safe_utils from masakari import safe_utils
from masakari import utils from masakari import utils
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
CONF = masakari.conf.CONF CONF = masakari.conf.CONF
class ConvertedException(webob.exc.WSGIHTTPException): class ConvertedException(webob.exc.WSGIHTTPException):
def __init__(self, code, title="", explanation=""): def __init__(self, code, title="", explanation=""):
self.code = code self.code = int(code)
# There is a strict rule about constructing status line for HTTP: # There is a strict rule about constructing status line for HTTP:
# '...Status-Line, consisting of the protocol version followed by a # '...Status-Line, consisting of the protocol version followed by a
# numeric status code and its associated textual phrase, with each # numeric status code and its associated textual phrase, with each
# element separated by SP characters' # element separated by SP characters'
# (http://www.faqs.org/rfcs/rfc2616.html) # (http://www.faqs.org/rfcs/rfc2616.html)
# 'code' and 'title' can not be empty because they correspond # 'code' and 'title' can not be empty because they correspond
# to numeric status code and its associated text # to numeric status code and its associated text
if title: if title:
self.title = title self.title = title
else: else:
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)