iris-pex-embedded-python 3.4.0b6__py3-none-any.whl → 3.4.0b8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of iris-pex-embedded-python might be problematic. Click here for more details.

iop/_common.py CHANGED
@@ -148,7 +148,10 @@ class _Common(metaclass=abc.ABCMeta):
148
148
  if not member[0].startswith('_'):
149
149
  # remove other methods and functions
150
150
  if not inspect.ismethod(member[1]) and not inspect.isfunction(member[1]) and not inspect.isclass(member[1]):
151
- if member[0] not in ('INFO_URL','ICON_URL','PERSISTENT_PROPERTY_LIST') :
151
+ if member[0] not in ('INFO_URL','ICON_URL','PERSISTENT_PROPERTY_LIST'
152
+ ,'log_to_console','logger','iris_handle'
153
+ ,'DISPATCH','adapter','Adapter','buffer'
154
+ ,'BusinessHost','business_host','business_host_python'):
152
155
  name = member[0]
153
156
  req = 0
154
157
  cat = "Additional"
iop/cls/IOP/Common.cls CHANGED
@@ -199,7 +199,6 @@ ClassMethod OnGetConnections(
199
199
  Catch ex {
200
200
  }
201
201
 
202
-
203
202
  // Get settings
204
203
  do pItem.GetModifiedSetting("%classpaths", .tClasspaths)
205
204
  do pItem.GetModifiedSetting("%classname", .tClassname)
iop/cls/IOP/Utils.cls CHANGED
@@ -275,6 +275,54 @@ ClassMethod GenerateProxyClass(
275
275
  set:($Case(tSuperClass,"IOP.InboundAdapter":1,"IOP.OutboundAdapter":1,:0)) type = "Adapter"
276
276
  set tSETTINGSParamValue = $REPLACE(tSETTINGSParamValue,"$type",type)
277
277
 
278
+ #dim tCustomProp As %Dictionary.PropertyDefinition
279
+ #dim tPropInfo,tPropName,tDataType,tDefault,tDesc,tPropCat,tContext As %String
280
+
281
+ set builtins = ##class(%SYS.Python).Import("builtins")
282
+ #; each remote setting is of form $lb(propName,dataType,defaultVal,required,category,description,editorContext)
283
+ For i=0:1:builtins.len(pRemoteSettings)-1 {
284
+ Set tPropInfo = pRemoteSettings."__getitem__"(i)
285
+ Continue:""=tPropInfo ; this shouldn't happen, but just in case
286
+ Set tPropName = tPropInfo."__getitem__"(0)
287
+ Set tDataType = tPropInfo."__getitem__"(1)
288
+ If (""=tPropName) || (""=tDataType) {
289
+ Set tSC = $$$ERROR($$$EnsErrGeneral,"All properties must have a name and datatype defined")
290
+ Quit
291
+ }
292
+ Set tCustomProp = ##class(%Dictionary.PropertyDefinition).%New()
293
+ Set tCustomProp.Name = tPropName
294
+ If $Case(tDataType,"String":1,"Integer":1,"Boolean":1,"Numeric":1,:0) {
295
+ Set tDataType = "%"_tDataType
296
+ } ElseIf '##class(%Dictionary.ClassDefinition).%ExistsId(tDataType) {
297
+ Set tDataType = "%String"
298
+ }
299
+ Set tCustomProp.Type = tDataType
300
+ If tDataType["%String" {
301
+ Set tSC = tCustomProp.Parameters.SetAt("255","MAXLEN")
302
+ Quit:$$$ISERR(tSC)
303
+ }
304
+ Set tDefault = tPropInfo."__getitem__"(2)
305
+ If ""'=tDefault {
306
+ Set tCustomProp.InitialExpression = $$$quote(tDefault)
307
+ }
308
+ Set tCustomProp.Required = tPropInfo."__getitem__"(3)
309
+
310
+ Set tSC = tCOSClass.Properties.Insert(tCustomProp)
311
+ Quit:$$$ISERR(tSC)
312
+
313
+ #dim tMethod As %Dictionary.MethodDefinition = ##class(%Dictionary.MethodDefinition).%New()
314
+ Set tMethod.Name = tPropName_"Set"
315
+ Set tMethod.ReturnType = "%Status"
316
+ Set tMethod.FormalSpec = "value:"_tDataType
317
+ Do tMethod.Implementation.WriteLine(" Set ..%class."""_tPropName_""" = value")
318
+ Do tMethod.Implementation.WriteLine(" Quit $$$OK")
319
+ Set tSC = tCOSClass.Methods.Insert(tMethod)
320
+
321
+ Set tPropCat = "Python Attributes"
322
+ Set tSETTINGSParamValue = tSETTINGSParamValue_","_tPropName_":"_tPropCat
323
+ }
324
+ Quit:$$$ISERR(tSC)
325
+
278
326
  #dim tSETTINGSParam As %Dictionary.ParameterDefinition = ##class(%Dictionary.ParameterDefinition).%New()
279
327
  Set tSETTINGSParam.Name = "SETTINGS"
280
328
  Set tSETTINGSParam.Default = tSETTINGSParamValue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.4.0b6
3
+ Version: 3.4.0b8
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -98,7 +98,7 @@ iop/_business_operation.py,sha256=ml4BIn1BfrGx8AUGISFR71DZIUCP8vZ2yn9SQjaSzTM,30
98
98
  iop/_business_process.py,sha256=hj6nDIP5Mz5UYbm0vDjvs9lPSEYVQxGJl6tQRcDGTBk,8548
99
99
  iop/_business_service.py,sha256=lPTp3_tcLTOWvHlE_YwrcImLGf1PJBUgIOrV-8ctFLw,3851
100
100
  iop/_cli.py,sha256=IwvVxglSTVkCDXwANLMqnd8mfxGtWB6GjBSdEy8EMm0,7551
101
- iop/_common.py,sha256=VBYLExrM-89flg7VBRbdlTX5f3UgDipH2U6v_24NB_g,13170
101
+ iop/_common.py,sha256=HnrI6l3TOHSkp3TcbcmLXHW_vrnRI80oD2in5_We2e8,13444
102
102
  iop/_decorators.py,sha256=ZpgEETLdKWv58AoSMfXnm3_mA-6qPphIegjG-npDgwg,2324
103
103
  iop/_director.py,sha256=DrswFoqJ6IG62hkW-0ZffTtZdxw6KNozlZSIq3O6d-o,11629
104
104
  iop/_dispatch.py,sha256=I3TAhvTuk8j4VcROI9vAitJ0a7Nk1BYAWKRrLeNsjr0,3203
@@ -114,14 +114,14 @@ iop/_utils.py,sha256=CUqxhjaOdAG8IuPnk0j7L__qlj0JhR5Ajhf3Lm5omzA,19921
114
114
  iop/cls/IOP/BusinessOperation.cls,sha256=lrymqZ8wHl5kJjXwdjbQVs5sScV__yIWGh-oGbiB_X0,914
115
115
  iop/cls/IOP/BusinessProcess.cls,sha256=s3t38w1ykHqM26ETcbCYLt0ocjZyVVahm-_USZkuJ1E,2855
116
116
  iop/cls/IOP/BusinessService.cls,sha256=7ebn32J9PiZXUgXuh5Xxm_7X6zHBiqkJr9c_dWxbPO8,1021
117
- iop/cls/IOP/Common.cls,sha256=mJvfTGxJeqLDlBxdnCt-hYiVZEJpfvmdzYEC_UqKeHo,11234
117
+ iop/cls/IOP/Common.cls,sha256=YiJi84K1-rrm-CpcbGeccFuhEQ6F5PkBoD5HtjfoiAQ,11233
118
118
  iop/cls/IOP/Director.cls,sha256=M43LoTb6lwSr0J81RFxi1YLW1mwda09wQ7Xqr3nBtxo,2008
119
119
  iop/cls/IOP/InboundAdapter.cls,sha256=GeoCm6q5HcLJ5e4VxgqXiErJXqolBbpKwpunaNzpvjU,610
120
120
  iop/cls/IOP/Message.cls,sha256=ZrYQHosgfTG9wv7i-WQ8j71YXZMmL4_mN16xtIDwcRg,25180
121
121
  iop/cls/IOP/OutboundAdapter.cls,sha256=9eOwy5ojwcTzwrHs6LNrFQvUD8aqcoNCZrILN1ycdDM,958
122
122
  iop/cls/IOP/PickleMessage.cls,sha256=S3y7AClQ8mAILjxPuHdCjGosBZYzGbUQ5WTv4mYPNMQ,1673
123
123
  iop/cls/IOP/Test.cls,sha256=gAC9PEfMZsvAEWIa241-ug2FWAhITbN1SOispZzJPnI,2094
124
- iop/cls/IOP/Utils.cls,sha256=ZTBr02spm4ppxVBfhnUwb08BmhTjG5-ZbItRshYHs1I,13746
124
+ iop/cls/IOP/Utils.cls,sha256=gQBp0lC4F7FWkv1JEDe45qsaLcVlg995t2th46nDGx8,15745
125
125
  iop/cls/IOP/Duplex/Operation.cls,sha256=K_fmgeLjPZQbHgNrc0kd6DUQoW0fDn1VHQjJxHo95Zk,525
126
126
  iop/cls/IOP/Duplex/Process.cls,sha256=xbefZ4z84a_IUhavWN6P_gZBzqkdJ5XRTXxro6iDvAg,6986
127
127
  iop/cls/IOP/Duplex/Service.cls,sha256=sTMOQUCMBgVitmQkM8bbsrmrRtCdj91VlctJ3I7b8WU,161
@@ -135,9 +135,9 @@ iop/cls/IOP/Service/WSGI.cls,sha256=VLNCXEwmHW9dBnE51uGE1nvGX6T4HjhqePT3LVhsjAE,
135
135
  iop/wsgi/handlers.py,sha256=NrFLo_YbAh-x_PlWhAiWkQnUUN2Ss9HoEm63dDWCBpQ,2947
136
136
  irisnative/_IRISNative.py,sha256=HQ4nBhc8t8_5OtxdMG-kx1aa-T1znf2I8obZOPLOPzg,665
137
137
  irisnative/__init__.py,sha256=6YmvBLQSURsCPKaNg7LK-xpo4ipDjrlhKuwdfdNb3Kg,341
138
- iris_pex_embedded_python-3.4.0b6.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
139
- iris_pex_embedded_python-3.4.0b6.dist-info/METADATA,sha256=p_koH9nS0DciiSCc9uBPs7drlvbm4h3vrx8mra99Rz0,4397
140
- iris_pex_embedded_python-3.4.0b6.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
141
- iris_pex_embedded_python-3.4.0b6.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
142
- iris_pex_embedded_python-3.4.0b6.dist-info/top_level.txt,sha256=VWDlX4YF4qFVRGrG3-Gs0kgREol02i8gIpsHNbhfFPw,42
143
- iris_pex_embedded_python-3.4.0b6.dist-info/RECORD,,
138
+ iris_pex_embedded_python-3.4.0b8.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
139
+ iris_pex_embedded_python-3.4.0b8.dist-info/METADATA,sha256=f6_S7F3lftJoNiYivGyGoKEmFrhAKt-gQ8E5UjXAlng,4397
140
+ iris_pex_embedded_python-3.4.0b8.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
141
+ iris_pex_embedded_python-3.4.0b8.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
142
+ iris_pex_embedded_python-3.4.0b8.dist-info/top_level.txt,sha256=VWDlX4YF4qFVRGrG3-Gs0kgREol02i8gIpsHNbhfFPw,42
143
+ iris_pex_embedded_python-3.4.0b8.dist-info/RECORD,,