iris-pex-embedded-python 3.1.5b2__py3-none-any.whl → 3.1.5b4__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.

@@ -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") or handle_partner._IsA("IOP.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") or handle_partner._IsA("IOP.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,6 +15,13 @@ 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):
21
+ if target not in self._bs or self._bs[target] is None:
22
+ self._bs[target] = _Director.create_python_business_service(target)
23
+ return self._bs[target]
24
+
18
25
  @staticmethod
19
26
  def CreateBusinessService(target):
20
27
  """ DEPRECATED : use create_business_service
@@ -40,7 +47,7 @@ class _Director():
40
47
  Returns:
41
48
  an object that contains an instance of IRISBusinessService
42
49
  """
43
- iris_object = iris.cls("Grongier.PEX.Director").dispatchCreateBusinessService(target)
50
+ iris_object = iris.cls("IOP.Director").dispatchCreateBusinessService(target)
44
51
  return iris_object
45
52
 
46
53
  @staticmethod
@@ -54,7 +61,7 @@ class _Director():
54
61
  Returns:
55
62
  an object that contains an instance of IRISBusinessService
56
63
  """
57
- iris_object = iris.cls("Grongier.PEX.Director").dispatchCreateBusinessService(target)
64
+ iris_object = iris.cls("IOP.Director").dispatchCreateBusinessService(target)
58
65
  return iris_object.GetClass()
59
66
 
60
67
  ### List of function to manage the production
@@ -112,12 +119,12 @@ class _Director():
112
119
  ### list production
113
120
  @staticmethod
114
121
  def list_productions():
115
- return iris.cls('Grongier.PEX.Director').dispatchListProductions()
122
+ return iris.cls('IOP.Director').dispatchListProductions()
116
123
 
117
124
  ### status production
118
125
  @staticmethod
119
126
  def status_production():
120
- dikt = iris.cls('Grongier.PEX.Director').StatusProduction()
127
+ dikt = iris.cls('IOP.Director').StatusProduction()
121
128
  if dikt['Production'] is None or dikt['Production'] == '':
122
129
  dikt['Production'] = _Director.get_default_production()
123
130
  return dikt
@@ -31,7 +31,8 @@ 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 handle_partner._IsA("Grongier.PEX.InboundAdapter") or handle_partner._IsA("Grongier.PEX.OutboundAdapter"):
34
+ if (handle_partner._IsA("Grongier.PEX.InboundAdapter") or handle_partner._IsA("Grongier.PEX.OutboundAdapter")
35
+ or handle_partner._IsA("IOP.InboundAdapter") or handle_partner._IsA("IOP.OutboundAdapter")):
35
36
  module = importlib.import_module(handle_partner.GetModule())
36
37
  handle_partner = getattr(module, handle_partner.GetClassname())()
37
38
  self.Adapter = self.adapter = handle_partner
iop/cls/IOP/Director.cls CHANGED
@@ -10,9 +10,9 @@ Class IOP.Director [ Inheritance = right, ProcedureBlock, System = 4 ]
10
10
  ClassMethod dispatchCreateBusinessService(pTargetDispatchName As %String) As Ens.BusinessService
11
11
  {
12
12
  // Hack to prevent job to be registered in the production
13
- do ##class(Ens.Job).UnRegister(pTargetDispatchName,$JOB)
14
13
  set tSC = ##class(Ens.Director).CreateBusinessService(pTargetDispatchName,.service)
15
14
  if $$$ISERR(tSC) throw ##class(%Exception.StatusException).CreateFromStatus(tSC)
15
+ do ##class(Ens.Job).UnRegister(pTargetDispatchName,$JOB)
16
16
  quit service
17
17
  }
18
18
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: iris_pex_embedded_python
3
- Version: 3.1.5b2
3
+ Version: 3.1.5b4
4
4
  Summary: Iris Interoperability based on Embedded Python
5
5
  Author-email: grongier <guillaume.rongier@intersystems.com>
6
6
  License: MIT License
@@ -93,24 +93,24 @@ intersystems_iris/pex/__init__.py,sha256=l_I1dpnluWawbFrGMDC0GLHpuHwjbpd-nho8otF
93
93
  iop/__init__.py,sha256=zHFF0Znipx1fwHYUEBZjNOYoZH1ro7z4IgYDU32kdn0,1067
94
94
  iop/__main__.py,sha256=pQzVtkDhAeI6dpNRC632dVk2SGZZIEDwDufdgZe8VWs,98
95
95
  iop/_business_host.py,sha256=_U7f2Fy-7_qzBz4OQTAieVvEhBaT1Z0E77QoYPU0i-U,28244
96
- iop/_business_operation.py,sha256=P824IzO89LCKnoNHZk64OZBDHcomHpjhKmMT89bS6TI,3500
96
+ iop/_business_operation.py,sha256=BX4CT6OW_i2jLZRTWQIDJsQSRxFWpKUf0pAXruy3Wsg,3546
97
97
  iop/_business_process.py,sha256=F4NIQcwQ5u8yiAPpaN14OAXxbKJsRAGm5S4lrbgA3oI,13296
98
- iop/_business_service.py,sha256=sX8J-2-0Go6uIuPYa0A5N9Nn9rY5lV6a05v4q78qDC8,3726
98
+ iop/_business_service.py,sha256=8dYTr4z3RE0WupT7_DeDvYjyhVqZtdDj0jA52ZSKCQ0,3771
99
99
  iop/_cli.py,sha256=yg4wv1FkhgjmoZuTMUr61Ff21PegJDH_cpZeHcF8hQE,6207
100
100
  iop/_common.py,sha256=uKJdfCSPOjVQOg8GVuUj4ywfAn_2sPB3C82HbWw_5bI,15384
101
- iop/_director.py,sha256=TFkhci40zgq271zB9SYGK24TZtOcYZCTNzWFkA4I2IM,11016
101
+ iop/_director.py,sha256=24sxiGSHMcMS4jARZAtUzXkDbUzm4FpRQPzcZAprURY,11220
102
102
  iop/_inbound_adapter.py,sha256=PS5ToqhrYcXq9ZdLbCBqAfVp8kCeRACm_KF66pwBO9U,1652
103
103
  iop/_message.py,sha256=BmwBXriykU66bwAgRbdkMpjfJRVWoNRX2eDc9TXfXzA,325
104
104
  iop/_outbound_adapter.py,sha256=YTAhLrRf9chEAd53mV6KKbpaHOKNOKJHoGgj5wakRR0,726
105
105
  iop/_pickle_message.py,sha256=noKfc2VkXufV3fqjKvNHN_oANQ1YN9ffCaSV0XSTAIE,331
106
- iop/_private_session_duplex.py,sha256=klzWKwRRBoKUSz85D3DNYuCpDcZe_kWLNCWq5JtR0yc,5044
106
+ iop/_private_session_duplex.py,sha256=36OwAGlasbPtfwq2KgMFcr3a33RsNSqohJx243XcDWI,5153
107
107
  iop/_private_session_process.py,sha256=pGjWFOQhWpQxUVpTtvNKTPvDxgzjfw0VC4Aqj3KUq8w,1704
108
108
  iop/_utils.py,sha256=b1vFnAXbcNV4uN9zojIeSeLgr0CuSt9bBgguZra0ve8,18105
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
112
112
  iop/cls/IOP/Common.cls,sha256=vYTnsL-ch-vTjpigBtwOHgrnOQMmuTkqXT9F-vWE650,11068
113
- iop/cls/IOP/Director.cls,sha256=Wd5iwiRd9XSt7G18Ga3XAIPSuIrPYVumbCEjYrkZHBs,2002
113
+ iop/cls/IOP/Director.cls,sha256=VFVckzsHItqcArIjPUaTQxYgt8uzJcM1R5SrtmZX8ZY,2002
114
114
  iop/cls/IOP/InboundAdapter.cls,sha256=GeoCm6q5HcLJ5e4VxgqXiErJXqolBbpKwpunaNzpvjU,610
115
115
  iop/cls/IOP/Message.cls,sha256=n0r0FslXdDfPcHIiAlW7n596DDsDSNlTX8UTPaMnSV8,9911
116
116
  iop/cls/IOP/OutboundAdapter.cls,sha256=9eOwy5ojwcTzwrHs6LNrFQvUD8aqcoNCZrILN1ycdDM,958
@@ -129,9 +129,9 @@ iop/cls/IOP/Service/WSGI.cls,sha256=VLNCXEwmHW9dBnE51uGE1nvGX6T4HjhqePT3LVhsjAE,
129
129
  iop/wsgi/handlers.py,sha256=NrFLo_YbAh-x_PlWhAiWkQnUUN2Ss9HoEm63dDWCBpQ,2947
130
130
  irisnative/_IRISNative.py,sha256=HQ4nBhc8t8_5OtxdMG-kx1aa-T1znf2I8obZOPLOPzg,665
131
131
  irisnative/__init__.py,sha256=6YmvBLQSURsCPKaNg7LK-xpo4ipDjrlhKuwdfdNb3Kg,341
132
- iris_pex_embedded_python-3.1.5b2.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
133
- iris_pex_embedded_python-3.1.5b2.dist-info/METADATA,sha256=3vQrPnXpKqj8SsOff9zTULoY8yoJjP6_os2YNA2A9l4,50207
134
- iris_pex_embedded_python-3.1.5b2.dist-info/WHEEL,sha256=a7TGlA-5DaHMRrarXjVbQagU3Man_dCnGIWMJr5kRWo,91
135
- iris_pex_embedded_python-3.1.5b2.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
136
- iris_pex_embedded_python-3.1.5b2.dist-info/top_level.txt,sha256=VWDlX4YF4qFVRGrG3-Gs0kgREol02i8gIpsHNbhfFPw,42
137
- iris_pex_embedded_python-3.1.5b2.dist-info/RECORD,,
132
+ iris_pex_embedded_python-3.1.5b4.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
133
+ iris_pex_embedded_python-3.1.5b4.dist-info/METADATA,sha256=7xBUyBeSgmGvnx5WvQ1QzeDMWZ0KrmOt2YXiBCOA3uA,50207
134
+ iris_pex_embedded_python-3.1.5b4.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
135
+ iris_pex_embedded_python-3.1.5b4.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
136
+ iris_pex_embedded_python-3.1.5b4.dist-info/top_level.txt,sha256=VWDlX4YF4qFVRGrG3-Gs0kgREol02i8gIpsHNbhfFPw,42
137
+ iris_pex_embedded_python-3.1.5b4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.4.0)
2
+ Generator: setuptools (75.6.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5