iris-pex-embedded-python 3.4.1b11__py3-none-any.whl → 3.4.2__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/cls/IOP/Common.cls CHANGED
@@ -37,19 +37,12 @@ Method GetModule() As %String
37
37
  Return ..%module
38
38
  }
39
39
 
40
- Method %OnNew(pConfigName As %String) As %Status
41
- {
42
- $$$ThrowOnError(..Connect())
43
- $$$ThrowOnError($method($this,"initConfig",.pConfigName)) ; call subclass
44
- do ..%class."_debugpy"($this)
45
- Quit $$$OK
46
- }
47
-
48
40
  Method OnInit() As %Status
49
41
  {
50
42
  set tSC = $$$OK
51
43
  try {
52
-
44
+ $$$ThrowOnError(..Connect())
45
+ do ..%class."_debugpy"($this)
53
46
  do ..%class."_dispatch_on_init"($this)
54
47
  } catch ex {
55
48
  set tSC = ex.AsStatus()
@@ -149,6 +142,40 @@ Method SetPropertyValues()
149
142
  $$$LOGWARNING(ex.DisplayString())
150
143
  }
151
144
  }
145
+ // Now process the Python Attributes Settings
146
+ // First list all the properties of the current class
147
+ set class = $CLASSNAME()
148
+ set tSQL = "SELECT * FROM %Dictionary.PropertyDefinition WHERE parent = ?"
149
+ set tSQL = tSQL _ " AND name <> 'timeout'"
150
+ set tSQL = tSQL _ " and name <> 'enable'"
151
+ set tSQL = tSQL _ " and name <> '%classpaths'"
152
+ set tSQL = tSQL _ " and name <> '%classname'"
153
+ set tSQL = tSQL _ " and name <> '%module'"
154
+ set tSQL = tSQL _ " and name <> 'port'"
155
+ set tSQL = tSQL _ " and name <> 'PythonInterpreterPath'"
156
+
157
+ set tStmt = ##class(%SQL.Statement).%New()
158
+
159
+ set tSC = tStmt.%Prepare(tSQL)
160
+ if $$$ISERR(tSC) {
161
+ $$$LOGERROR("Error preparing SQL statement: "_tSC)
162
+ quit
163
+ }
164
+ set tRs = tStmt.%Execute(class)
165
+
166
+ while tRs.%Next() {
167
+ set property = tRs.%Get("Name")
168
+ set value = $property($this,property)
169
+
170
+ if value'="" {
171
+ try {
172
+ set $property(..%class,property) = value
173
+ } catch ex {
174
+ $$$LOGWARNING(ex.DisplayString())
175
+ }
176
+ }
177
+ }
178
+
152
179
  quit
153
180
  }
154
181
 
iop/cls/IOP/Utils.cls CHANGED
@@ -309,14 +309,6 @@ ClassMethod GenerateProxyClass(
309
309
 
310
310
  Set tSC = tCOSClass.Properties.Insert(tCustomProp)
311
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
312
 
321
313
  Set tPropCat = "Python Attributes"
322
314
  Set tSETTINGSParamValue = tSETTINGSParamValue_","_tPropName_":"_tPropCat
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.4.1b11
3
+ Version: 3.4.2
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -53,14 +53,14 @@ iop/_utils.py,sha256=zguWjvZQkzAScHXl4OomZr2ZtPljDqVAs1CFllQZn5g,20092
53
53
  iop/cls/IOP/BusinessOperation.cls,sha256=lrymqZ8wHl5kJjXwdjbQVs5sScV__yIWGh-oGbiB_X0,914
54
54
  iop/cls/IOP/BusinessProcess.cls,sha256=s3t38w1ykHqM26ETcbCYLt0ocjZyVVahm-_USZkuJ1E,2855
55
55
  iop/cls/IOP/BusinessService.cls,sha256=7ebn32J9PiZXUgXuh5Xxm_7X6zHBiqkJr9c_dWxbPO8,1021
56
- iop/cls/IOP/Common.cls,sha256=yq3HskJOuX-jMtU6UW2EwhU9ur1m-v9ZLtTYu4lp5zw,11416
56
+ iop/cls/IOP/Common.cls,sha256=kcK2LrsPxJzU5cDIDUtwrPaDCf7rE73EY-iwHACACFw,12370
57
57
  iop/cls/IOP/Director.cls,sha256=M43LoTb6lwSr0J81RFxi1YLW1mwda09wQ7Xqr3nBtxo,2008
58
58
  iop/cls/IOP/InboundAdapter.cls,sha256=GeoCm6q5HcLJ5e4VxgqXiErJXqolBbpKwpunaNzpvjU,610
59
59
  iop/cls/IOP/Message.cls,sha256=ZrYQHosgfTG9wv7i-WQ8j71YXZMmL4_mN16xtIDwcRg,25180
60
60
  iop/cls/IOP/OutboundAdapter.cls,sha256=9eOwy5ojwcTzwrHs6LNrFQvUD8aqcoNCZrILN1ycdDM,958
61
61
  iop/cls/IOP/PickleMessage.cls,sha256=S3y7AClQ8mAILjxPuHdCjGosBZYzGbUQ5WTv4mYPNMQ,1673
62
62
  iop/cls/IOP/Test.cls,sha256=gAC9PEfMZsvAEWIa241-ug2FWAhITbN1SOispZzJPnI,2094
63
- iop/cls/IOP/Utils.cls,sha256=_6d1qRNVbWH8GMrjA7xHudCJWw28ZXdRhVeEOcvCsRc,17744
63
+ iop/cls/IOP/Utils.cls,sha256=8MaKvQSX8ncjS0v3FTGyfb5HdA0urmozlfRJnCDLakc,17339
64
64
  iop/cls/IOP/Duplex/Operation.cls,sha256=K_fmgeLjPZQbHgNrc0kd6DUQoW0fDn1VHQjJxHo95Zk,525
65
65
  iop/cls/IOP/Duplex/Process.cls,sha256=xbefZ4z84a_IUhavWN6P_gZBzqkdJ5XRTXxro6iDvAg,6986
66
66
  iop/cls/IOP/Duplex/Service.cls,sha256=sTMOQUCMBgVitmQkM8bbsrmrRtCdj91VlctJ3I7b8WU,161
@@ -72,9 +72,9 @@ iop/cls/IOP/PrivateSession/Message/Start.cls,sha256=uk-WTe66GicCshgmVy3F5ugHiAyP
72
72
  iop/cls/IOP/PrivateSession/Message/Stop.cls,sha256=7g3gKFUjNg0WXBLuWnj-VnCs5G6hSE09YTzGEp0zbGc,1390
73
73
  iop/cls/IOP/Service/WSGI.cls,sha256=VLNCXEwmHW9dBnE51uGE1nvGX6T4HjhqePT3LVhsjAE,10440
74
74
  iop/wsgi/handlers.py,sha256=NrFLo_YbAh-x_PlWhAiWkQnUUN2Ss9HoEm63dDWCBpQ,2947
75
- iris_pex_embedded_python-3.4.1b11.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
76
- iris_pex_embedded_python-3.4.1b11.dist-info/METADATA,sha256=bem1ObaaQxBoN5RVcrtCe7d0ERQr_OJBxbXA7GcPPVo,4450
77
- iris_pex_embedded_python-3.4.1b11.dist-info/WHEEL,sha256=ooBFpIzZCPdw3uqIQsOo4qqbA4ZRPxHnOH7peeONza0,91
78
- iris_pex_embedded_python-3.4.1b11.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
79
- iris_pex_embedded_python-3.4.1b11.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
80
- iris_pex_embedded_python-3.4.1b11.dist-info/RECORD,,
75
+ iris_pex_embedded_python-3.4.2.dist-info/licenses/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
76
+ iris_pex_embedded_python-3.4.2.dist-info/METADATA,sha256=7NLDbOaig5F0K-8QmJmYsdKsWt1YLvxW2CLP91beoqw,4447
77
+ iris_pex_embedded_python-3.4.2.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
78
+ iris_pex_embedded_python-3.4.2.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
79
+ iris_pex_embedded_python-3.4.2.dist-info/top_level.txt,sha256=4p0q6hCATmYIVMVi3I8hOUcJE1kwzyBeHygWv_rGvrU,13
80
+ iris_pex_embedded_python-3.4.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.0.1)
2
+ Generator: setuptools (80.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5