Skip to content

Commit eb2b210

Browse files
committed
Callout serialization params
1 parent 751dab4 commit eb2b210

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

isc/py/Callout.cls

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
Class isc.py.Callout
88
{
99

10+
/// Serialization by str() function
11+
Parameter SerializationStr = 0;
12+
13+
/// Serialization by repr() function
14+
Parameter SerializationRepr = 1;
15+
1016
Parameter PyLibId As Integer = 4937;
1117

1218
Parameter Initialize As Integer = 1;
@@ -91,7 +97,7 @@ ClassMethod SimpleStringFull(code = {"import random;" _ $$$NL _ "x=random.random
9197
/// serialization - currenlty: 0 - string serialization, 1 - repr serialization.
9298
/// TODO determine wide variable value.
9399
/// write ##class(isc.py.Callout).SimpleString()
94-
ClassMethod SimpleString(code As %String = "", variable As %String = "", serialization As %Integer = 0) As %String
100+
ClassMethod SimpleString(code As %String = "", variable As %String = "", serialization As %Integer = {..#SerializationStr}) As %String
95101
{
96102
set:$ZISWIDE(code) code = $zcvt(code, "O", "UTF8")
97103
set result = $ZF(-6, ..#PyLibId, ..#SimpleString, code, variable, serialization)

0 commit comments

Comments
 (0)