# HG changeset patch
# User dporopat <denis.poropat@smarteh.si>
# Date 1523354903 -7200
# Node ID 4a5ac299f55000c06784978969922b38491cbcef
# Parent  bec80ff352829527ecaab42857d6cf2178b5c8e9
#2486 Added ExposedProgressCalls list using details argument for registration progress calls.

diff -r bec80ff35282 -r 4a5ac299f550 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))