Skip to content

Commit 3b8088a

Browse files
committed
ProxylessGateway: methods accept proxy objects too
1 parent 7ca7f1a commit 3b8088a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

isc/py/gw/DynamicObject.cls

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,18 @@ Method %DispatchSetProperty(property As %String, val) [ ServerOnly = 1 ]
7373
/// Call python function
7474
Method %DispatchMethod(method As %String, args...) [ ServerOnly = 1 ]
7575
{
76+
for i=1:1:$g(args) {
77+
set val = args(i)
78+
if ($isObject(val) && val.%Extends("isc.py.gw.DynamicObject")) {
79+
set value = val.%Variable
80+
} elseif (..%EscapeOnSet) {
81+
set value = ##class(isc.py.util.Converter).EscapeString(val)
82+
} else {
83+
set value = val
84+
}
85+
86+
set args(i) = value
87+
}
7688
$$$TOE(sc, ##class(isc.py.Main).ExecuteFunctionArgs(..%Variable _ "." _ method, ,..%Serialization, .result, args...))
7789
quit result
7890
}

0 commit comments

Comments
 (0)