#2486 Added ExposedProgressCalls list using details argument for registration progress calls. #2486
authordporopat <denis.poropat@smarteh.si>
Tue, 10 Apr 2018 12:08:23 +0200
branch#2486
changeset 2198 4a5ac299f550
parent 2197 bec80ff35282
child 2199 8fd73c6c8aa9
#2486 Added ExposedProgressCalls list using details argument for registration progress calls.
runtime/WampClient.py
--- a/runtime/WampClient.py	Tue Apr 10 10:44:46 2018 +0200
+++ b/runtime/WampClient.py	Tue Apr 10 12:08:23 2018 +0200
@@ -52,6 +52,8 @@
     "ResetLogCount",
 ]
 
+ExposedProgressCalls = []
+
 # Those two lists are meant to be filled by customized runtime
 # or User python code.
 
@@ -112,6 +114,13 @@
         for name in ExposedCalls:
             yield self.register(GetCallee(name), u'.'.join((ID, name)), registerOptions)
 
+        if ExposedProgressCalls:
+            validRegisterOptions["details_arg"] = 'details'
+            registerOptions = types.RegisterOptions(**validRegisterOptions)
+            # using progress, details argument must be added
+            for name in ExposedProgressCalls:
+                yield self.register(GetCallee(name), u'.'.join((ID, name)), registerOptions)
+
         for name in SubscribedEvents:
             yield self.subscribe(GetCallee(name), unicode(name))