iris-pex-embedded-python 3.4.0b9__py3-none-any.whl → 3.4.0b11__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/_director.py CHANGED
@@ -6,7 +6,6 @@ import intersystems_iris.dbapi._DBAPI as irisdbapi
6
6
  import signal
7
7
  from dataclasses import dataclass
8
8
 
9
- from iop._business_host import _BusinessHost
10
9
  from iop._dispatch import dispatch_deserializer, dispatch_serializer
11
10
  from iop._utils import _Utils
12
11
 
@@ -278,7 +277,6 @@ class _Director():
278
277
  else:
279
278
  message.json = _Utils.string_to_stream("{}")
280
279
  # serialize the message
281
- business_host = _BusinessHost()
282
280
  serial_message = dispatch_serializer(message)
283
281
  response = iris.cls('IOP.Utils').dispatchTestComponent(target,serial_message)
284
282
  try:
iop/_utils.py CHANGED
@@ -6,6 +6,7 @@ import inspect
6
6
  import xmltodict
7
7
  import pkg_resources
8
8
  import importlib
9
+ import importlib.util
9
10
  import json
10
11
  from iop._message import _Message, _PydanticMessage
11
12
  from pydantic import TypeAdapter
@@ -241,7 +242,7 @@ class _Utils():
241
242
  settings = _Utils.import_module_from_path('settings',filename)
242
243
  else:
243
244
  # import settings from the settings module
244
- import settings
245
+ import settings # type: ignore
245
246
  # get the path of the settings file
246
247
  path = os.path.dirname(inspect.getfile(settings))
247
248
  try:
@@ -261,7 +262,7 @@ class _Utils():
261
262
  except AttributeError:
262
263
  print("No schemas to register")
263
264
  try:
264
- sys.path.remove(path)
265
+ sys.path.remove(os.path.normpath(path))
265
266
  except ValueError:
266
267
  pass
267
268
 
iop/cls/IOP/Common.cls CHANGED
@@ -37,11 +37,17 @@ 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
+ Quit $method($this,"initConfig",.pConfigName) ; call subclass
44
+ }
45
+
40
46
  Method OnInit() As %Status
41
47
  {
42
48
  set tSC = $$$OK
43
49
  try {
44
- $$$ThrowOnError(..Connect())
50
+
45
51
  do ..%class."_dispatch_on_init"($this)
46
52
  } catch ex {
47
53
  set tSC = ex.AsStatus()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.4.0b9
3
+ Version: 3.4.0b11
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -100,7 +100,7 @@ iop/_business_service.py,sha256=lPTp3_tcLTOWvHlE_YwrcImLGf1PJBUgIOrV-8ctFLw,3851
100
100
  iop/_cli.py,sha256=IwvVxglSTVkCDXwANLMqnd8mfxGtWB6GjBSdEy8EMm0,7551
101
101
  iop/_common.py,sha256=HnrI6l3TOHSkp3TcbcmLXHW_vrnRI80oD2in5_We2e8,13444
102
102
  iop/_decorators.py,sha256=ZpgEETLdKWv58AoSMfXnm3_mA-6qPphIegjG-npDgwg,2324
103
- iop/_director.py,sha256=DrswFoqJ6IG62hkW-0ZffTtZdxw6KNozlZSIq3O6d-o,11629
103
+ iop/_director.py,sha256=fmsM9b_i0BHiWX5kjUYO9-k2A5Cz7Kg0435Dh7jwoFI,11542
104
104
  iop/_dispatch.py,sha256=I3TAhvTuk8j4VcROI9vAitJ0a7Nk1BYAWKRrLeNsjr0,3203
105
105
  iop/_inbound_adapter.py,sha256=PS5ToqhrYcXq9ZdLbCBqAfVp8kCeRACm_KF66pwBO9U,1652
106
106
  iop/_log_manager.py,sha256=f9T8yhcVJlCVNY7E_tb2e65QB_rJWYNF6J586OV2ukA,3240
@@ -110,11 +110,11 @@ iop/_outbound_adapter.py,sha256=YTAhLrRf9chEAd53mV6KKbpaHOKNOKJHoGgj5wakRR0,726
110
110
  iop/_private_session_duplex.py,sha256=mzlFABh-ly51X1uSWw9YwQbktfMvuNdp2ALlRvlDow4,5152
111
111
  iop/_private_session_process.py,sha256=todprfYFSDr-h-BMvWL_IGC6wbQqkMy3mPHWEWCUSE0,1686
112
112
  iop/_serialization.py,sha256=Uf6PzvOGuzzr3_29KkFpvU_NooVx6unkU6EqHMx7r3A,5900
113
- iop/_utils.py,sha256=CUqxhjaOdAG8IuPnk0j7L__qlj0JhR5Ajhf3Lm5omzA,19921
113
+ iop/_utils.py,sha256=jj1UZHVXYg5uB08E0ETKfpmXQX-TWYSdPl4BO43k2RY,19976
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=YiJi84K1-rrm-CpcbGeccFuhEQ6F5PkBoD5HtjfoiAQ,11233
117
+ iop/cls/IOP/Common.cls,sha256=vrS9yo4aUgMiLwfhBFJvj7hG6zYQfcSIiu5o1hdppuU,11355
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
@@ -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.0b9.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
139
- iris_pex_embedded_python-3.4.0b9.dist-info/METADATA,sha256=YvTcBQUVHjAjI1uSYTZWx0Hq0ZS_hpW2v3vNVGXaDCA,4397
140
- iris_pex_embedded_python-3.4.0b9.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
141
- iris_pex_embedded_python-3.4.0b9.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
142
- iris_pex_embedded_python-3.4.0b9.dist-info/top_level.txt,sha256=VWDlX4YF4qFVRGrG3-Gs0kgREol02i8gIpsHNbhfFPw,42
143
- iris_pex_embedded_python-3.4.0b9.dist-info/RECORD,,
138
+ iris_pex_embedded_python-3.4.0b11.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
139
+ iris_pex_embedded_python-3.4.0b11.dist-info/METADATA,sha256=JkGmOv0iaVnGWABXVEqD16nnlp2WRHhNPKFv0ATKSdQ,4398
140
+ iris_pex_embedded_python-3.4.0b11.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
141
+ iris_pex_embedded_python-3.4.0b11.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
142
+ iris_pex_embedded_python-3.4.0b11.dist-info/top_level.txt,sha256=VWDlX4YF4qFVRGrG3-Gs0kgREol02i8gIpsHNbhfFPw,42
143
+ iris_pex_embedded_python-3.4.0b11.dist-info/RECORD,,