Skip to content
This repository
Browse code

small change in Application instantiation

  • Loading branch information...
commit 45f5af70aa826640008222bda96299d51c9df980 1 parent 0c9c52c
Burak Arslan authored March 06, 2012
7  CHANGELOG.rst
Source Rendered
@@ -10,6 +10,13 @@ rpclib-2.7.0-beta
10 10
    ``descriptor.function`` unless you understand the consequences!..
11 11
  * String and Unicode models are now separate objects with well-defined
12 12
    (de)serialization behaviour.
  13
+ * Argument order change in Application ctor:
  14
+
  15
+       interface, in_protocol, out_protocol
  16
+
  17
+   becomes:
  18
+
  19
+       in_protocol, out_protocol, interface
13 20
 
14 21
 rpclib-2.6.1-beta
15 22
 -----------------
6  src/rpclib/application.py
@@ -67,7 +67,7 @@ class Application(object):
67 67
 
68 68
     transport = None
69 69
 
70  
-    def __init__(self, services, tns, interface, in_protocol, out_protocol,
  70
+    def __init__(self, services, tns, in_protocol, out_protocol, interface=None,
71 71
                                         name=None, supports_fanout_methods=False):
72 72
 
73 73
         self.services = services
@@ -84,6 +84,10 @@ def __init__(self, services, tns, interface, in_protocol, out_protocol,
84 84
         self.out_protocol = out_protocol
85 85
         self.out_protocol.set_app(self)
86 86
 
  87
+        if interface is None:
  88
+            from rpclib.interface.wsdl import Wsdl11
  89
+            interface = Wsdl11()
  90
+
87 91
         self.interface = interface
88 92
         self.interface.set_app(self)
89 93
 

0 notes on commit 45f5af7

Please sign in to comment.
Something went wrong with that request. Please try again.