iris-pex-embedded-python 3.1.5__py3-none-any.whl → 3.1.5b2__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_operation.py +1 -1
- iop/_business_service.py +1 -1
- iop/_director.py +4 -19
- iop/_private_session_duplex.py +1 -2
- iop/cls/IOP/Common.cls +1 -7
- iop/cls/IOP/Director.cls +1 -4
- iop/cls/IOP/Message.cls +14 -12
- iris_pex_embedded_python-3.1.5b2.dist-info/METADATA +1405 -0
- {iris_pex_embedded_python-3.1.5.dist-info → iris_pex_embedded_python-3.1.5b2.dist-info}/RECORD +13 -13
- {iris_pex_embedded_python-3.1.5.dist-info → iris_pex_embedded_python-3.1.5b2.dist-info}/WHEEL +1 -1
- iris_pex_embedded_python-3.1.5.dist-info/METADATA +0 -88
- {iris_pex_embedded_python-3.1.5.dist-info → iris_pex_embedded_python-3.1.5b2.dist-info}/LICENSE +0 -0
- {iris_pex_embedded_python-3.1.5.dist-info → iris_pex_embedded_python-3.1.5b2.dist-info}/entry_points.txt +0 -0
- {iris_pex_embedded_python-3.1.5.dist-info → iris_pex_embedded_python-3.1.5b2.dist-info}/top_level.txt +0 -0
iop/_business_operation.py
CHANGED
|
@@ -36,7 +36,7 @@ class _BusinessOperation(_BusinessHost):
|
|
|
36
36
|
""" For internal use only. """
|
|
37
37
|
self.iris_handle = handle_current
|
|
38
38
|
if type(handle_partner).__module__.find('iris') == 0:
|
|
39
|
-
if handle_partner._IsA("Grongier.PEX.OutboundAdapter")
|
|
39
|
+
if handle_partner._IsA("Grongier.PEX.OutboundAdapter"):
|
|
40
40
|
module = importlib.import_module(handle_partner.GetModule())
|
|
41
41
|
handle_partner = getattr(module, handle_partner.GetClassname())()
|
|
42
42
|
self.Adapter = self.adapter = handle_partner
|
iop/_business_service.py
CHANGED
|
@@ -30,7 +30,7 @@ class _BusinessService(_BusinessHost):
|
|
|
30
30
|
""" For internal use only. """
|
|
31
31
|
self.iris_handle = handle_current
|
|
32
32
|
if type(handle_partner).__module__.find('iris') == 0:
|
|
33
|
-
if handle_partner._IsA("Grongier.PEX.InboundAdapter")
|
|
33
|
+
if handle_partner._IsA("Grongier.PEX.InboundAdapter"):
|
|
34
34
|
module = importlib.import_module(handle_partner.GetModule())
|
|
35
35
|
handle_partner = getattr(module, handle_partner.GetClassname())()
|
|
36
36
|
self.Adapter = self.adapter = handle_partner
|
iop/_director.py
CHANGED
|
@@ -15,21 +15,6 @@ class _Director():
|
|
|
15
15
|
Instead these business services are created by a custom application by calling the Director.CreateBusinessService() method.
|
|
16
16
|
"""
|
|
17
17
|
|
|
18
|
-
_bs = {}
|
|
19
|
-
|
|
20
|
-
def get_business_service(self,target,force_session_id=False):
|
|
21
|
-
""" get the business service
|
|
22
|
-
Parameters:
|
|
23
|
-
target: the name of the business service
|
|
24
|
-
force_session_id: if True, force the session id to be a new one
|
|
25
|
-
"""
|
|
26
|
-
if target not in self._bs or self._bs[target] is None:
|
|
27
|
-
self._bs[target] = _Director.create_python_business_service(target)
|
|
28
|
-
if force_session_id:
|
|
29
|
-
self._bs[target].iris_handle._SessionId = ""
|
|
30
|
-
self._bs[target].iris_handle.ForceSessionId()
|
|
31
|
-
return self._bs[target]
|
|
32
|
-
|
|
33
18
|
@staticmethod
|
|
34
19
|
def CreateBusinessService(target):
|
|
35
20
|
""" DEPRECATED : use create_business_service
|
|
@@ -55,7 +40,7 @@ class _Director():
|
|
|
55
40
|
Returns:
|
|
56
41
|
an object that contains an instance of IRISBusinessService
|
|
57
42
|
"""
|
|
58
|
-
iris_object = iris.cls("
|
|
43
|
+
iris_object = iris.cls("Grongier.PEX.Director").dispatchCreateBusinessService(target)
|
|
59
44
|
return iris_object
|
|
60
45
|
|
|
61
46
|
@staticmethod
|
|
@@ -69,7 +54,7 @@ class _Director():
|
|
|
69
54
|
Returns:
|
|
70
55
|
an object that contains an instance of IRISBusinessService
|
|
71
56
|
"""
|
|
72
|
-
iris_object = iris.cls("
|
|
57
|
+
iris_object = iris.cls("Grongier.PEX.Director").dispatchCreateBusinessService(target)
|
|
73
58
|
return iris_object.GetClass()
|
|
74
59
|
|
|
75
60
|
### List of function to manage the production
|
|
@@ -127,12 +112,12 @@ class _Director():
|
|
|
127
112
|
### list production
|
|
128
113
|
@staticmethod
|
|
129
114
|
def list_productions():
|
|
130
|
-
return iris.cls('
|
|
115
|
+
return iris.cls('Grongier.PEX.Director').dispatchListProductions()
|
|
131
116
|
|
|
132
117
|
### status production
|
|
133
118
|
@staticmethod
|
|
134
119
|
def status_production():
|
|
135
|
-
dikt = iris.cls('
|
|
120
|
+
dikt = iris.cls('Grongier.PEX.Director').StatusProduction()
|
|
136
121
|
if dikt['Production'] is None or dikt['Production'] == '':
|
|
137
122
|
dikt['Production'] = _Director.get_default_production()
|
|
138
123
|
return dikt
|
iop/_private_session_duplex.py
CHANGED
|
@@ -31,8 +31,7 @@ class _PrivateSessionDuplex(_BusinessHost):
|
|
|
31
31
|
""" For internal use only. """
|
|
32
32
|
self.iris_handle = handle_current
|
|
33
33
|
if type(handle_partner).__module__.find('iris') == 0:
|
|
34
|
-
if
|
|
35
|
-
or handle_partner._IsA("IOP.InboundAdapter") or handle_partner._IsA("IOP.OutboundAdapter")):
|
|
34
|
+
if handle_partner._IsA("Grongier.PEX.InboundAdapter") or handle_partner._IsA("Grongier.PEX.OutboundAdapter"):
|
|
36
35
|
module = importlib.import_module(handle_partner.GetModule())
|
|
37
36
|
handle_partner = getattr(module, handle_partner.GetClassname())()
|
|
38
37
|
self.Adapter = self.adapter = handle_partner
|
iop/cls/IOP/Common.cls
CHANGED
|
@@ -118,13 +118,7 @@ Method Connect() As %Status
|
|
|
118
118
|
Method OnTearDown() As %Status
|
|
119
119
|
{
|
|
120
120
|
set tSC = $$$OK
|
|
121
|
-
|
|
122
|
-
try {
|
|
123
|
-
do ..%class."_dispatch_on_tear_down"()
|
|
124
|
-
} catch ex {
|
|
125
|
-
set tSC = ex.AsStatus()
|
|
126
|
-
}
|
|
127
|
-
}
|
|
121
|
+
do ..%class."_dispatch_on_tear_down"()
|
|
128
122
|
quit tSC
|
|
129
123
|
}
|
|
130
124
|
|
iop/cls/IOP/Director.cls
CHANGED
|
@@ -9,13 +9,10 @@ Class IOP.Director [ Inheritance = right, ProcedureBlock, System = 4 ]
|
|
|
9
9
|
|
|
10
10
|
ClassMethod dispatchCreateBusinessService(pTargetDispatchName As %String) As Ens.BusinessService
|
|
11
11
|
{
|
|
12
|
-
set tSC = ##class(Ens.Director).CreateBusinessService(pTargetDispatchName,.service)
|
|
13
|
-
|
|
14
12
|
// Hack to prevent job to be registered in the production
|
|
15
13
|
do ##class(Ens.Job).UnRegister(pTargetDispatchName,$JOB)
|
|
16
|
-
|
|
14
|
+
set tSC = ##class(Ens.Director).CreateBusinessService(pTargetDispatchName,.service)
|
|
17
15
|
if $$$ISERR(tSC) throw ##class(%Exception.StatusException).CreateFromStatus(tSC)
|
|
18
|
-
|
|
19
16
|
quit service
|
|
20
17
|
}
|
|
21
18
|
|
iop/cls/IOP/Message.cls
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/* Copyright (c) 2021 by InterSystems Corporation.
|
|
2
|
+
Cambridge, Massachusetts, U.S.A. All rights reserved.
|
|
3
|
+
Confidential property of InterSystems Corporation. */
|
|
4
|
+
|
|
1
5
|
Class IOP.Message Extends (Ens.MessageBody, %CSP.Page, %XML.Adaptor)
|
|
2
6
|
{
|
|
3
7
|
|
|
@@ -75,16 +79,11 @@ Method jsonSet(pInput) As %Status
|
|
|
75
79
|
, "Stream":..jsonStream
|
|
76
80
|
, :$$$NULLOREF)
|
|
77
81
|
Quit:tOldStream=pInput $$$OK
|
|
78
|
-
|
|
79
|
-
If ..type'="" {
|
|
80
|
-
Set:(..type="String") i%jsonString=""
|
|
81
|
-
Set:(..type="Stream") i%jsonStream=$$$NULLOREF
|
|
82
|
-
Set i%type = ""
|
|
83
|
-
}
|
|
82
|
+
Do:..type'="" Clear() Set i%type=""
|
|
84
83
|
|
|
85
84
|
If $ISOBJECT(pInput) {
|
|
86
85
|
if pInput.%Extends("%Stream.GlobalCharacter") {
|
|
87
|
-
Set
|
|
86
|
+
Set ..jsonStream=pInput, i%type="Stream"
|
|
88
87
|
}
|
|
89
88
|
else {
|
|
90
89
|
Throw ##class(%Exception.General).%New("Invalid input type, must be a %Stream.GlobalCharacter or a %String")
|
|
@@ -95,15 +94,18 @@ Method jsonSet(pInput) As %Status
|
|
|
95
94
|
// write in a stream
|
|
96
95
|
Set stream = ##class(%Stream.GlobalCharacter).%New()
|
|
97
96
|
for i=1:..#BUFFER:$LENGTH(pInput) {
|
|
98
|
-
Set sc = stream.Write($EXTRACT(pInput,i,(i+..#BUFFER
|
|
97
|
+
Set sc = stream.Write($EXTRACT(pInput,i,(i+..#BUFFER)))
|
|
99
98
|
Quit:$$$ISERR(sc)
|
|
100
99
|
}
|
|
101
|
-
Set
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
Set i%jsonString=pInput, i%type="String"
|
|
100
|
+
Set ..jsonStream=stream, i%type="Stream"
|
|
105
101
|
}
|
|
102
|
+
Set i%jsonString=pInput, i%type="String"
|
|
106
103
|
}
|
|
104
|
+
Quit $$$OK
|
|
105
|
+
Clear()
|
|
106
|
+
If ..type="String" { Set r%jsonString="" }
|
|
107
|
+
ElseIf ..type="Stream" { Set r%jsonStream=$$$NULLOREF }
|
|
108
|
+
Quit
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
Method GetObjectJson(ByRef atEnd)
|