iris-pex-embedded-python 2.0.3__tar.gz → 2.1.1__tar.gz
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.
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/PKG-INFO +1 -1
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/setup.py +1 -1
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_business_host.py +4 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_common.py +6 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_utils.py +4 -3
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/iris_pex_embedded_python.egg-info/PKG-INFO +1 -1
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/iris_pex_embedded_python.egg-info/SOURCES.txt +1 -2
- iris_pex_embedded_python-2.0.3/test/test_selectt.py +0 -14
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/LICENSE +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/README.md +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/pyproject.toml +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/setup.cfg +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/iris/__init__.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/__init__.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_business_operation.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_business_process.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_business_service.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_director.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_inbound_adapter.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_message.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_outbound_adapter.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_pickle_message.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_private_session_duplex.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_private_session_process.py +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/iris_pex_embedded_python.egg-info/dependency_links.txt +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/iris_pex_embedded_python.egg-info/requires.txt +0 -0
- {iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/iris_pex_embedded_python.egg-info/top_level.txt +0 -0
|
@@ -26,7 +26,7 @@ def main():
|
|
|
26
26
|
description='iris_pex_embedded_python',
|
|
27
27
|
long_description=long_description,
|
|
28
28
|
long_description_content_type='text/markdown',
|
|
29
|
-
version='2.
|
|
29
|
+
version='2.1.1',
|
|
30
30
|
author='grongier',
|
|
31
31
|
author_email='guillaume.rongier@intersystems.com',
|
|
32
32
|
keywords='iris_pex_embedded_python',
|
{iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_business_host.py
RENAMED
|
@@ -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.
|
{iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_common.py
RENAMED
|
@@ -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):
|
{iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_utils.py
RENAMED
|
@@ -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
|
-
|
|
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
|
"""
|
|
@@ -21,5 +21,4 @@ src/iris_pex_embedded_python.egg-info/PKG-INFO
|
|
|
21
21
|
src/iris_pex_embedded_python.egg-info/SOURCES.txt
|
|
22
22
|
src/iris_pex_embedded_python.egg-info/dependency_links.txt
|
|
23
23
|
src/iris_pex_embedded_python.egg-info/requires.txt
|
|
24
|
-
src/iris_pex_embedded_python.egg-info/top_level.txt
|
|
25
|
-
test/test_selectt.py
|
|
24
|
+
src/iris_pex_embedded_python.egg-info/top_level.txt
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import iris
|
|
2
|
-
import os
|
|
3
|
-
import sys
|
|
4
|
-
|
|
5
|
-
# print var env LD_LIBRARY_PATH
|
|
6
|
-
print(os.environ.get('LD_LIBRARY_PATH'))
|
|
7
|
-
|
|
8
|
-
os.chdir('/usr/irissys/bin/')
|
|
9
|
-
from ctypes import *
|
|
10
|
-
CDLL("/usr/irissys/bin/pythonint.so")
|
|
11
|
-
|
|
12
|
-
iris.sql.exec('select 1')
|
|
13
|
-
iris.system.SQL.Purge()
|
|
14
|
-
iris.sql.exec('select 1')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/iris/__init__.py
RENAMED
|
File without changes
|
{iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_director.py
RENAMED
|
File without changes
|
|
File without changes
|
{iris_pex_embedded_python-2.0.3 → iris_pex_embedded_python-2.1.1}/src/grongier/pex/_message.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|