@@ -7,7 +7,7 @@ Class isc.py.Main
7
7
/// optionally return variable value.
8
8
/// serialization - currenlty: 0 - string serialization, 1 - repr serialization.
9
9
/// write ##class(isc.py.Main).SimpleString()
10
- ClassMethod SimpleString (code As %String = " " , variable As %String = " " , serialization As %Integer = 0 , Output result ) As %Status
10
+ ClassMethod SimpleString (code As %String = " " , variable As %String = " " , serialization As %Integer = { ##class ( isc.py.Callout ).#SerializationStr} , Output result ) As %Status
11
11
{
12
12
#dim sc As %Status = $$$OK
13
13
@@ -53,7 +53,7 @@ ClassMethod ExcuteCode(code As %Stream.Object, variable As %String = "") As %Sta
53
53
if length >$$$MaxStringLength {
54
54
set sc = ##class (isc.py.Callout ).StreamInit (length )
55
55
quit :$$$ISERR(sc ) sc
56
- set sc = ##class (isc.py.Callout ).StreamWrite (variable _ " =" )
56
+ set : hasVar sc = ##class (isc.py.Callout ).StreamWrite (variable _ " =" )
57
57
quit :$$$ISERR(sc ) sc
58
58
59
59
if $isObject (code ) {
@@ -87,7 +87,7 @@ ClassMethod ExcuteCode(code As %Stream.Object, variable As %String = "") As %Sta
87
87
/// variable - variable name
88
88
/// useString - if variable length is less than $$$MaxStringLength, return string instead of stream. Ignored if variable length is more than $$$MaxStringLength
89
89
/// set sc = ##class(isc.py.Main).GetVariable()
90
- ClassMethod GetVariable (variable As %String , serialization As %Integer = 0 , ByRef stream As %Stream .Object , useString As %Boolean = {$$$NO}) As %Status
90
+ ClassMethod GetVariable (variable As %String , serialization As %Integer = { ##class ( isc.py.Callout ).#SerializationStr} , ByRef stream As %Stream .Object , useString As %Boolean = {$$$NO}) As %Status
91
91
{
92
92
#dim sc As %Status = $$$OK
93
93
set sc = ..GetVariableInfo (variable , serialization , .defined , .type , .length )
@@ -130,7 +130,7 @@ ClassMethod GetVariable(variable As %String, serialization As %Integer = 0, ByRe
130
130
/// type - variable type
131
131
/// length - length (in symbols) of variable chosen serialization
132
132
/// set sc = ##class(isc.py.Main).GetVariableInfo()
133
- ClassMethod GetVariableInfo (variable As %String = " " , serialization As %Integer = 0 , Output defined As %Boolean , Output type As %String , Output length As %String ) As %Status
133
+ ClassMethod GetVariableInfo (variable As %String = " " , serialization As %Integer = { ##class ( isc.py.Callout ).#SerializationStr} , Output defined As %Boolean , Output type As %String , Output length As %String ) As %Status
134
134
{
135
135
#dim sc As %Status = $$$OK
136
136
kill defined , type , length
0 commit comments