Bug 921930

remove depedency on webob from python-quantumclient

Rebased and repushed after review expired

Change-Id: I7dc3840018f3496116d30c2684bc44f64fa2752b
This commit is contained in:
Salvatore Orlando 2012-02-02 15:01:49 +00:00
parent 55547ca785
commit 880cde716e
4 changed files with 7 additions and 4 deletions

@ -130,6 +130,10 @@ class MalformedRequestBody(QuantumException):
message = _("Malformed request body: %(reason)s")
class MalformedResponseBody(QuantumException):
message = _("Malformed response body: %(reason)s")
class Duplicate(Error):
pass

@ -1,6 +1,6 @@
from xml.dom import minidom
import webob.exc
from quantum.common import exceptions as exception
from quantum.common import utils
@ -41,7 +41,8 @@ class Serializer(object):
try:
return self.get_deserialize_handler(content_type)(datastring)
except Exception:
raise webob.exc.HTTPBadRequest("Could not deserialize data")
raise exception.MalformedResponseBody(
reason="Unable to deserialize response body")
def get_deserialize_handler(self, content_type):
handlers = {

@ -64,7 +64,6 @@ requires = [
'Paste',
'PasteDeploy',
'python-gflags',
'webob'
]
EagerResources = [

@ -4,7 +4,6 @@
Paste
PasteDeploy==1.5.0
python-gflags==1.3
WebOb==1.0.8
distribute>=0.6.24