@@ -226,7 +226,7 @@ ClassMethod GenerateProxyClass(
226226 }
227227
228228 #; Do not display any of the connection settings
229- #dim tSETTINGSParamValue As %String = " %classname:Python $type,%module:Python $type,%settings:Python $type,%classpaths:Python $type"
229+ #dim tSETTINGSParamValue As %String = " %classname:Python $type,%module:Python $type,%settings:Python $type,%classpaths:Python $type,%enable:Python Debug $type,%timeout:Python Debug $type,%port:Python Debug $type,%PythonInterpreterPath:Python Debug $type "
230230
231231 #dim tPropClassname As %Dictionary.PropertyDefinition = ##class (%Dictionary.PropertyDefinition ).%New ()
232232 Set tPropClassname .Name = " %classname"
@@ -270,10 +270,6 @@ ClassMethod GenerateProxyClass(
270270 Quit :$$$ISERR(tSC )
271271 }
272272 }
273-
274- set type = " "
275- set :($Case (tSuperClass ," IOP.InboundAdapter" :1 ," IOP.OutboundAdapter" :1 ,:0 )) type = " Adapter"
276- set tSETTINGSParamValue = $REPLACE (tSETTINGSParamValue ," $type" ,type )
277273
278274 #dim tCustomProp As %Dictionary.PropertyDefinition
279275 #dim tPropInfo ,tPropName,tDataType,tDefault,tDesc,tPropCat,tContext As %String
@@ -310,60 +306,14 @@ ClassMethod GenerateProxyClass(
310306 Set tSC = tCOSClass .Properties .Insert (tCustomProp )
311307 Quit :$$$ISERR(tSC )
312308
313- Set tPropCat = " Python Attributes"
309+ Set tPropCat = " Python Attributes $type "
314310 Set tSETTINGSParamValue = tSETTINGSParamValue _" ," _tPropName _" :" _tPropCat
315311 }
316312 Quit :$$$ISERR(tSC )
317313
318- #; Add debug settings, three settings are always available debug a boolean, port an integer and a timeout an integer
319- Set tPropCat = " Python Debug"
320- #; Debug property
321- Set tPropDebug = ##class (%Dictionary.PropertyDefinition ).%New ()
322- Set tPropDebug .Name = " enable"
323- Set tPropDebug .Type = " %Boolean"
324- Set tPropDebug .InitialExpression = $$$quote(0 )
325- Set tPropDebug .Description = " Enable or disable debug"
326-
327- Set tSC = tCOSClass .Properties .Insert (tPropDebug )
328- Quit :$$$ISERR(tSC )
329-
330- #; Add the settings parameter
331- Set tSETTINGSParamValue = tSETTINGSParamValue _" ,enable:" _tPropCat
332-
333- #; Port property
334- Set tPropPort = ##class (%Dictionary.PropertyDefinition ).%New ()
335- Set tPropPort .Name = " port"
336- Set tPropPort .Type = " %Integer"
337- Set tPropPort .InitialExpression = $$$quote(0 )
338- Set tPropPort .Description = " Port to use for the debug connection, if 0 an random port will be used"
339- Set tSC = tCOSClass .Properties .Insert (tPropPort )
340- Quit :$$$ISERR(tSC )
341-
342- #; Add the settings parameter
343- Set tSETTINGSParamValue = tSETTINGSParamValue _" ,port:" _tPropCat
344-
345- #; Timeout property
346- Set tPropTimeout = ##class (%Dictionary.PropertyDefinition ).%New ()
347- Set tPropTimeout .Name = " timeout"
348- Set tPropTimeout .Type = " %Integer"
349- Set tPropTimeout .InitialExpression = $$$quote(30 )
350- Set tSC = tCOSClass .Properties .Insert (tPropTimeout )
351- Quit :$$$ISERR(tSC )
352-
353- #; Add the settings parameter
354- Set tSETTINGSParamValue = tSETTINGSParamValue _" ,timeout:" _tPropCat
355-
356- #; PythonInterpreterPath property
357- Set tPropInterpre = ##class (%Dictionary.PropertyDefinition ).%New ()
358- Set tPropInterpre .Name = " PythonInterpreterPath"
359- Set tPropInterpre .Type = " %String"
360- Set tPropInterpre .Description = " Path to the Python interpreter, if not set the default one will be used"
361- Do tPropInterpre .Parameters .SetAt (" 255" ," MAXLEN" )
362- Set tSC = tCOSClass .Properties .Insert (tPropInterpre )
363- Quit :$$$ISERR(tSC )
364-
365- #; Add the settings parameter
366- Set tSETTINGSParamValue = tSETTINGSParamValue _" ,PythonInterpreterPath:" _tPropCat
314+ set type = " "
315+ set :($Case (tSuperClass ," IOP.InboundAdapter" :1 ," IOP.OutboundAdapter" :1 ,:0 )) type = " Adapter"
316+ set tSETTINGSParamValue = $REPLACE (tSETTINGSParamValue ," $type" ,type )
367317
368318 #dim tSETTINGSParam As %Dictionary.ParameterDefinition = ##class (%Dictionary.ParameterDefinition ).%New ()
369319 Set tSETTINGSParam .Name = " SETTINGS"
0 commit comments