Skip to content

Commit ecad1ac

Browse files
committed
Update adapter handling to support IOP inbound and outbound adapters
1 parent 45a7995 commit ecad1ac

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

src/iop/_business_operation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _set_iris_handles(self, handle_current, handle_partner):
3636
""" For internal use only. """
3737
self.iris_handle = handle_current
3838
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"):
4040
module = importlib.import_module(handle_partner.GetModule())
4141
handle_partner = getattr(module, handle_partner.GetClassname())()
4242
self.Adapter = self.adapter = handle_partner

src/iop/_business_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _set_iris_handles(self, handle_current, handle_partner):
3030
""" For internal use only. """
3131
self.iris_handle = handle_current
3232
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"):
3434
module = importlib.import_module(handle_partner.GetModule())
3535
handle_partner = getattr(module, handle_partner.GetClassname())()
3636
self.Adapter = self.adapter = handle_partner

src/iop/_director.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def create_business_service(target):
4040
Returns:
4141
an object that contains an instance of IRISBusinessService
4242
"""
43-
iris_object = iris.cls("Grongier.PEX.Director").dispatchCreateBusinessService(target)
43+
iris_object = iris.cls("IOP.Director").dispatchCreateBusinessService(target)
4444
return iris_object
4545

4646
@staticmethod
@@ -54,7 +54,7 @@ def create_python_business_service(target):
5454
Returns:
5555
an object that contains an instance of IRISBusinessService
5656
"""
57-
iris_object = iris.cls("Grongier.PEX.Director").dispatchCreateBusinessService(target)
57+
iris_object = iris.cls("IOP.Director").dispatchCreateBusinessService(target)
5858
return iris_object.GetClass()
5959

6060
### List of function to manage the production
@@ -112,12 +112,12 @@ def update_production():
112112
### list production
113113
@staticmethod
114114
def list_productions():
115-
return iris.cls('Grongier.PEX.Director').dispatchListProductions()
115+
return iris.cls('IOP.Director').dispatchListProductions()
116116

117117
### status production
118118
@staticmethod
119119
def status_production():
120-
dikt = iris.cls('Grongier.PEX.Director').StatusProduction()
120+
dikt = iris.cls('IOP.Director').StatusProduction()
121121
if dikt['Production'] is None or dikt['Production'] == '':
122122
dikt['Production'] = _Director.get_default_production()
123123
return dikt

src/iop/_private_session_duplex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def _set_iris_handles(self, handle_current, handle_partner):
3131
""" For internal use only. """
3232
self.iris_handle = handle_current
3333
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")):
3536
module = importlib.import_module(handle_partner.GetModule())
3637
handle_partner = getattr(module, handle_partner.GetClassname())()
3738
self.Adapter = self.adapter = handle_partner

0 commit comments

Comments
 (0)