iris-pex-embedded-python 3.0.1b3__py3-none-any.whl → 3.0.1b5__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/_business_host.py CHANGED
@@ -235,9 +235,17 @@ class _BusinessHost(_Common):
235
235
  :param serial: The serialized object
236
236
  :return: The return value is a tuple of the form (serial, serial_type)
237
237
  """
238
- if (serial is not None and type(serial).__module__.find('iris') == 0) and serial._IsA("IOP.Message"):
238
+ if (
239
+ (serial is not None and type(serial).__module__.find('iris') == 0)
240
+ and
241
+ (serial._IsA("IOP.Message") or serial._IsA("Grongier.PEX.Message"))
242
+ ):
239
243
  return self._deserialize_message(serial)
240
- elif (serial is not None and type(serial).__module__.find('iris') == 0) and serial._IsA("IOP.PickleMessage"):
244
+ elif (
245
+ (serial is not None and type(serial).__module__.find('iris') == 0)
246
+ and
247
+ (serial._IsA("IOP.PickleMessage") or serial._IsA("Grongier.PEX.PickleMessage"))
248
+ ):
241
249
  return self._deserialize_pickle_message(serial)
242
250
  else:
243
251
  return serial
iop/_utils.py CHANGED
@@ -28,7 +28,8 @@ class _Utils():
28
28
  # for retrocompatibility load grongier.pex
29
29
  path = pkg_resources.resource_filename('grongier', 'cls')
30
30
 
31
- _Utils.raise_on_error(iris.cls('%SYSTEM.OBJ').LoadDir(path,'cubk',"*.cls",1))
31
+ if path:
32
+ _Utils.raise_on_error(iris.cls('%SYSTEM.OBJ').LoadDir(path,'cubk',"*.cls",1))
32
33
 
33
34
  @staticmethod
34
35
  def register_component(module:str,classname:str,path:str,overwrite:int=1,iris_classname:str='Python'):
@@ -47,10 +48,12 @@ class _Utils():
47
48
  :type iris_classname: str
48
49
  :return: The return value is a string.
49
50
  """
50
- path = os.path.normpath(path)
51
- # get the absolute path of the folder
52
- path = os.path.abspath(path)
53
- return iris.cls('Grongier.PEX.Utils').dispatchRegisterComponent(module,classname,path,overwrite,iris_classname)
51
+ path = os.path.abspath(os.path.normpath(path))
52
+ try:
53
+ iris.cls('IOP.Utils').dispatchRegisterComponent(module,classname,path,overwrite,iris_classname)
54
+ except RuntimeError as e:
55
+ # New message error : Make sure the iop package is installed in iris
56
+ raise RuntimeError("Iris class : IOP.Utils not found. Make sure the iop package is installed in iris eg: iop --init.") from e
54
57
 
55
58
  @staticmethod
56
59
  def register_folder(path:str,overwrite:int=1,iris_package_name:str='Python'):
@@ -333,7 +336,7 @@ class _Utils():
333
336
  production_name = production_name.split('.')[-1]
334
337
  stream = _Utils.string_to_stream(xml)
335
338
  # register the production
336
- _Utils.raise_on_error(iris.cls('Grongier.PEX.Utils').CreateProduction(package,production_name,stream))
339
+ _Utils.raise_on_error(iris.cls('IOP.Utils').CreateProduction(package,production_name,stream))
337
340
 
338
341
  @staticmethod
339
342
  def export_production(production_name):
@@ -348,7 +351,7 @@ class _Utils():
348
351
  return key, ''
349
352
  return key, value
350
353
  # export the production
351
- xdata = iris.cls('Grongier.PEX.Utils').ExportProduction(production_name)
354
+ xdata = iris.cls('IOP.Utils').ExportProduction(production_name)
352
355
  # for each chunk of 1024 characters
353
356
  string = _Utils.stream_to_string(xdata)
354
357
  # convert the xml to a dictionary
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.0.1b3
3
+ Version: 3.0.1b5
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -92,7 +92,7 @@ intersystems_iris/pex/_OutboundAdapter.py,sha256=ao2Ubbta2DcrQGdzDUD_j1Zsk8bvUfc
92
92
  intersystems_iris/pex/__init__.py,sha256=l_I1dpnluWawbFrGMDC0GLHpuHwjbpd-nho8otFX6TE,1379
93
93
  iop/__init__.py,sha256=zHFF0Znipx1fwHYUEBZjNOYoZH1ro7z4IgYDU32kdn0,1067
94
94
  iop/__main__.py,sha256=pQzVtkDhAeI6dpNRC632dVk2SGZZIEDwDufdgZe8VWs,98
95
- iop/_business_host.py,sha256=tG1etW7nueMWhQ1x05BMd1s6ZBpq36y_rDLcOif28vM,22155
95
+ iop/_business_host.py,sha256=IRxhn1vXeMqlIztugvZNUxcBrM1gTHeGbjJGafrXbHQ,22383
96
96
  iop/_business_operation.py,sha256=P824IzO89LCKnoNHZk64OZBDHcomHpjhKmMT89bS6TI,3500
97
97
  iop/_business_process.py,sha256=F4NIQcwQ5u8yiAPpaN14OAXxbKJsRAGm5S4lrbgA3oI,13296
98
98
  iop/_business_service.py,sha256=sX8J-2-0Go6uIuPYa0A5N9Nn9rY5lV6a05v4q78qDC8,3726
@@ -105,7 +105,7 @@ iop/_outbound_adapter.py,sha256=YTAhLrRf9chEAd53mV6KKbpaHOKNOKJHoGgj5wakRR0,726
105
105
  iop/_pickle_message.py,sha256=noKfc2VkXufV3fqjKvNHN_oANQ1YN9ffCaSV0XSTAIE,331
106
106
  iop/_private_session_duplex.py,sha256=klzWKwRRBoKUSz85D3DNYuCpDcZe_kWLNCWq5JtR0yc,5044
107
107
  iop/_private_session_process.py,sha256=pGjWFOQhWpQxUVpTtvNKTPvDxgzjfw0VC4Aqj3KUq8w,1704
108
- iop/_utils.py,sha256=2QCgy3gk3dvcocTiHwjiJVhheN_qts4KYkBAKJoj7-c,16077
108
+ iop/_utils.py,sha256=3rhO33PLZ1ESJiboQFwfIGUvHV7RBSbq6A2CPyMaojA,16269
109
109
  iop/cls/IOP/BusinessOperation.cls,sha256=lrymqZ8wHl5kJjXwdjbQVs5sScV__yIWGh-oGbiB_X0,914
110
110
  iop/cls/IOP/BusinessProcess.cls,sha256=s3t38w1ykHqM26ETcbCYLt0ocjZyVVahm-_USZkuJ1E,2855
111
111
  iop/cls/IOP/BusinessService.cls,sha256=7ebn32J9PiZXUgXuh5Xxm_7X6zHBiqkJr9c_dWxbPO8,1021
@@ -133,9 +133,9 @@ iris/iris_ipm.py,sha256=Q0jcNItjywlqOPZr0hgdTFSeLPNEmB-tcICOI_cXnaY,790
133
133
  iris/iris_ipm.pyi,sha256=j7CNUZcjeDu5sgeWUZJO_Qi4vQmHh6aD-jPWv8OdoUs,374
134
134
  irisnative/_IRISNative.py,sha256=HQ4nBhc8t8_5OtxdMG-kx1aa-T1znf2I8obZOPLOPzg,665
135
135
  irisnative/__init__.py,sha256=6YmvBLQSURsCPKaNg7LK-xpo4ipDjrlhKuwdfdNb3Kg,341
136
- iris_pex_embedded_python-3.0.1b3.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
137
- iris_pex_embedded_python-3.0.1b3.dist-info/METADATA,sha256=4XfVaf1Jk2oJfz9GcmdsMRd3unR8rWSpD69NaLcqum0,49430
138
- iris_pex_embedded_python-3.0.1b3.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
139
- iris_pex_embedded_python-3.0.1b3.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
140
- iris_pex_embedded_python-3.0.1b3.dist-info/top_level.txt,sha256=jkWtvFKOp1Q-uO_VpGpfx5TcW7DS39z1liOAVp6zLig,47
141
- iris_pex_embedded_python-3.0.1b3.dist-info/RECORD,,
136
+ iris_pex_embedded_python-3.0.1b5.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
137
+ iris_pex_embedded_python-3.0.1b5.dist-info/METADATA,sha256=Xe4_UiGybuOAb2h6jTLFjVxqEaZeQCH6OHGc4QDIhtI,49430
138
+ iris_pex_embedded_python-3.0.1b5.dist-info/WHEEL,sha256=Z4pYXqR_rTB7OWNDYFOm1qRk0RX6GFP2o8LgvP453Hk,91
139
+ iris_pex_embedded_python-3.0.1b5.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
140
+ iris_pex_embedded_python-3.0.1b5.dist-info/top_level.txt,sha256=jkWtvFKOp1Q-uO_VpGpfx5TcW7DS39z1liOAVp6zLig,47
141
+ iris_pex_embedded_python-3.0.1b5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.2.0)
2
+ Generator: setuptools (70.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5