Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

small change in Application instantiation

  • Loading branch information...
commit 45f5af70aa826640008222bda96299d51c9df980 1 parent 0c9c52c
@plq plq authored
Showing with 12 additions and 1 deletion.
  1. +7 −0 CHANGELOG.rst
  2. +5 −1 src/rpclib/application.py
View
7 CHANGELOG.rst
@@ -10,6 +10,13 @@ rpclib-2.7.0-beta
``descriptor.function`` unless you understand the consequences!..
* String and Unicode models are now separate objects with well-defined
(de)serialization behaviour.
+ * Argument order change in Application ctor:
+
+ interface, in_protocol, out_protocol
+
+ becomes:
+
+ in_protocol, out_protocol, interface
rpclib-2.6.1-beta
-----------------
View
6 src/rpclib/application.py
@@ -67,7 +67,7 @@ class Application(object):
transport = None
- def __init__(self, services, tns, interface, in_protocol, out_protocol,
+ def __init__(self, services, tns, in_protocol, out_protocol, interface=None,
name=None, supports_fanout_methods=False):
self.services = services
@@ -84,6 +84,10 @@ def __init__(self, services, tns, interface, in_protocol, out_protocol,
self.out_protocol = out_protocol
self.out_protocol.set_app(self)
+ if interface is None:
+ from rpclib.interface.wsdl import Wsdl11
+ interface = Wsdl11()
+
self.interface = interface
self.interface.set_app(self)
Please sign in to comment.
Something went wrong with that request. Please try again.