iris-pex-embedded-python 2.0.3__py3-none-any.whl → 2.1.1__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.

@@ -153,8 +153,12 @@ class _BusinessHost(_Common):
153
153
  return self._serialize_message(message)
154
154
  elif (message is not None and self._is_pickle_message_instance(message)):
155
155
  return self._serialize_pickle_message(message)
156
+ elif (message is not None and self._is_iris_object_instance(message)):
157
+ return message
156
158
  else:
159
+ # todo : decorator takes care of all the parameters, so this should never happen
157
160
  return message
161
+ #raise TypeError("The message must be an instance of a class that is a subclass of Message or IRISObject %Persistent class.")
158
162
 
159
163
  def _serialize_message(self,message):
160
164
  """ Converts a python dataclass message into an iris grongier.pex.message.
grongier/pex/_common.py CHANGED
@@ -55,6 +55,12 @@ class _Common():
55
55
  if cls._is_pickel_message_class(type(obj)):
56
56
  return True
57
57
  return False
58
+
59
+ @classmethod
60
+ def _is_iris_object_instance(cls, obj):
61
+ if (obj is not None and type(obj).__module__.find('iris') == 0) and obj._IsA("%Persistent"):
62
+ return True
63
+ return False
58
64
 
59
65
  @classmethod
60
66
  def _is_message_class(cls, klass):
grongier/pex/_utils.py CHANGED
@@ -111,11 +111,12 @@ class _Utils():
111
111
  extend = klass.bases[0].id
112
112
  else:
113
113
  extend = klass.bases[0].attr
114
- #if extends BusinessOperation,BusinessProcess,BusinessService
115
114
  if extend in ('BusinessOperation','BusinessProcess','BusinessService','DuplexService','DuplexProcess','DuplexOperation','InboundAdapter','OutboundAdapter'):
116
115
  module = _Utils.filename_to_module(filename)
117
- _Utils.register_component(module, klass.name, path, overwrite, f"{iris_package_name}.{module}.{klass.name}")
118
-
116
+ iris_class_name = f"{iris_package_name}.{module}.{klass.name}"
117
+ # strip "_" for iris class name
118
+ iris_class_name = iris_class_name.replace('_','')
119
+ _Utils.register_component(module, klass.name, path, overwrite, iris_class_name)
119
120
  @staticmethod
120
121
  def register_package(package:str,path:str,overwrite:int,iris_package_name:str):
121
122
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iris-pex-embedded-python
3
- Version: 2.0.3
3
+ Version: 2.1.1
4
4
  Summary: iris_pex_embedded_python
5
5
  Home-page: https://github.com/grongierisc/interoperability-embedded-python
6
6
  Author: grongier
@@ -1,10 +1,10 @@
1
1
  grongier/iris/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  grongier/pex/__init__.py,sha256=nvcmRCxLy-lpL5GzlCKrmsSK8LF8Q0aKddx6ib8U50E,1166
3
- grongier/pex/_business_host.py,sha256=yYX5rRtGPPO9qu-lBspbxPP80kcrN0xmuyAwjkoZjcs,19811
3
+ grongier/pex/_business_host.py,sha256=01JsAKt4DMQ6X1IhNIUH5cgg38Hh9eKgPJUHY8qZi1c,20152
4
4
  grongier/pex/_business_operation.py,sha256=W_B9Ci1fei8SGcElkAd13gV9S4BNKeQciTMVqxxJVZc,3509
5
5
  grongier/pex/_business_process.py,sha256=WtO1RCZUKykaxUFocI1XmZmnSQzEOz_VFsVFytsOzFE,11838
6
6
  grongier/pex/_business_service.py,sha256=8CgpjcdVmv5747CTa3Lw3B48RYXq2SQN9qfdxvqEI5g,3735
7
- grongier/pex/_common.py,sha256=yRZDjpF81dTZyXy_ELW1yo1GyKtRze16kwZYvc6_g_g,14889
7
+ grongier/pex/_common.py,sha256=Mf3nX0Jf0YHPN72PeXIKd5kJbkz4N3xVqlGlEyL2DIM,15107
8
8
  grongier/pex/_director.py,sha256=1gj0jTbKwBcMWlG8yTdvMb0tXrkiB0KenRHMzIGzPms,3840
9
9
  grongier/pex/_inbound_adapter.py,sha256=aQqRfyw69Iz6AaYzeTAbC_ERDvKadY3tSSC1LJCUVQg,1661
10
10
  grongier/pex/_message.py,sha256=BmwBXriykU66bwAgRbdkMpjfJRVWoNRX2eDc9TXfXzA,325
@@ -12,9 +12,9 @@ grongier/pex/_outbound_adapter.py,sha256=HOxTSGwgQVDXzYpSMArLEmipPNYLxOCFaiN51Me
12
12
  grongier/pex/_pickle_message.py,sha256=noKfc2VkXufV3fqjKvNHN_oANQ1YN9ffCaSV0XSTAIE,331
13
13
  grongier/pex/_private_session_duplex.py,sha256=Qj_xzwwFnFVwi_Sl7Q7nKk4zmL6UC8iqBAuwnz7mVX8,5033
14
14
  grongier/pex/_private_session_process.py,sha256=_2r_csWcVRLmIUt4O0Y1Hg1FcX6A08lt9DvALQhwu8s,1722
15
- grongier/pex/_utils.py,sha256=c3RPxV9LPjd5uTv0UlG-P7H6QOV-M4AvaziX1aCkOZI,6966
16
- iris_pex_embedded_python-2.0.3.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
17
- iris_pex_embedded_python-2.0.3.dist-info/METADATA,sha256=73qgR5k922qR2abFfZPUQjanaF31KW4UrLP6iNl3etY,35845
18
- iris_pex_embedded_python-2.0.3.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
19
- iris_pex_embedded_python-2.0.3.dist-info/top_level.txt,sha256=IHTNyQ_h3DSfdFPl6yKfe3Flu-EfpykyfJi7jo-O6Vs,9
20
- iris_pex_embedded_python-2.0.3.dist-info/RECORD,,
15
+ grongier/pex/_utils.py,sha256=iiCfXPQXn1Ct4APxd8WRB89q10PyxuUc1NHzVGVBdKE,7063
16
+ iris_pex_embedded_python-2.1.1.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
17
+ iris_pex_embedded_python-2.1.1.dist-info/METADATA,sha256=LBQbHsQEiN5_yWCNu_3sqRJEoYXjLHZz279X-lzOr2w,35845
18
+ iris_pex_embedded_python-2.1.1.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
19
+ iris_pex_embedded_python-2.1.1.dist-info/top_level.txt,sha256=IHTNyQ_h3DSfdFPl6yKfe3Flu-EfpykyfJi7jo-O6Vs,9
20
+ iris_pex_embedded_python-2.1.1.dist-info/RECORD,,