Permalink
Browse files

formatting

  • Loading branch information...
1 parent 55e5200 commit 39242644b42ecc28647c8117c3700cd61670b528 @plq committed Aug 6, 2012
Showing with 5 additions and 4 deletions.
  1. +2 −0 spyne/model/complex.py
  2. +0 −1 spyne/protocol/_dictobj.py
  3. +2 −2 spyne/protocol/xml/_base.py
  4. +1 −1 spyne/test/protocol/test_json.py
View
@@ -419,6 +419,7 @@ def customize(cls, **kwargs):
return retval
+
class ComplexModel(ComplexModelBase):
"""The general complexType factory. The __call__ method of this class will
return instances, contrary to primivites where the same call will result in
@@ -494,5 +495,6 @@ class Iterable(Array):
implementation, this is just a marker.
"""
+
class Alias(ComplexModel):
"""Different type_name, same _type_info."""
@@ -184,7 +184,6 @@ def serialize(self, ctx, message):
self.event_manager.fire_event('before_serialize', ctx)
if ctx.out_error is not None:
- # FIXME: There's no way to alter soap response headers for the user.
ctx.out_document = [ctx.out_error._to_dict(ctx.out_error)]
else:
@@ -145,9 +145,9 @@ def from_element(self, cls, element):
handler = self.deserialization_handlers[cls]
return handler(self, cls, element)
- def to_parent_element(self, cls, value, tns, parent_elt, * args, ** kwargs):
+ def to_parent_element(self, cls, value, tns, parent_elt, *args, **kwargs):
handler = self.serialization_handlers[cls]
- handler(self, cls, value, tns, parent_elt, * args, ** kwargs)
+ handler(self, cls, value, tns, parent_elt, *args, **kwargs)
def validate_body(self, ctx, message):
"""Sets ctx.method_request_string and calls :func:`generate_contexts`
@@ -39,7 +39,7 @@
from spyne.service import ServiceBase
from spyne.server import ServerBase
-class Test(unittest.TestCase):
+class TestJsonObject(unittest.TestCase):
'''Most of the service tests are performed through the interop tests.'''
def test_multiple_return_sd_2(self):

0 comments on commit 3924264

Please sign in to comment.