#2486 Added ExposedProgressCalls list using details argument for registration progress calls.
--- 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))