iris-pex-embedded-python 3.4.0b5__py3-none-any.whl → 3.4.0b7__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/_common.py +14 -4
- iop/cls/IOP/Common.cls +12 -2
- iop/cls/IOP/Utils.cls +48 -0
- {iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/METADATA +1 -1
- {iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/RECORD +9 -9
- {iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/LICENSE +0 -0
- {iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/WHEEL +0 -0
- {iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/entry_points.txt +0 -0
- {iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/top_level.txt +0 -0
iop/_common.py
CHANGED
|
@@ -18,6 +18,17 @@ class _Common(metaclass=abc.ABCMeta):
|
|
|
18
18
|
ICON_URL: ClassVar[str]
|
|
19
19
|
iris_handle: Any = None
|
|
20
20
|
_log_to_console: bool = False
|
|
21
|
+
_logger: logging.Logger = None
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def logger(self) -> logging.Logger:
|
|
25
|
+
if self._logger is None:
|
|
26
|
+
self._logger = LogManager.get_logger(self.__class__.__name__,self.log_to_console)
|
|
27
|
+
return self._logger
|
|
28
|
+
|
|
29
|
+
@logger.setter
|
|
30
|
+
def logger(self, value: logging.Logger) -> None:
|
|
31
|
+
self._logger = value
|
|
21
32
|
|
|
22
33
|
@property
|
|
23
34
|
def log_to_console(self) -> bool:
|
|
@@ -28,9 +39,6 @@ class _Common(metaclass=abc.ABCMeta):
|
|
|
28
39
|
self._log_to_console = value
|
|
29
40
|
self.logger = LogManager.get_logger(self.__class__.__name__,value)
|
|
30
41
|
|
|
31
|
-
def __init__(self):
|
|
32
|
-
self.logger = LogManager.get_logger(self.__class__.__name__)
|
|
33
|
-
|
|
34
42
|
# Lifecycle methods
|
|
35
43
|
def on_init(self) -> None:
|
|
36
44
|
"""Initialize component when started."""
|
|
@@ -140,7 +148,9 @@ class _Common(metaclass=abc.ABCMeta):
|
|
|
140
148
|
if not member[0].startswith('_'):
|
|
141
149
|
# remove other methods and functions
|
|
142
150
|
if not inspect.ismethod(member[1]) and not inspect.isfunction(member[1]) and not inspect.isclass(member[1]):
|
|
143
|
-
if member[0] not in ('INFO_URL','ICON_URL','PERSISTENT_PROPERTY_LIST'
|
|
151
|
+
if member[0] not in ('INFO_URL','ICON_URL','PERSISTENT_PROPERTY_LIST'
|
|
152
|
+
,'log_to_console','logger','iris_handle'
|
|
153
|
+
,'DISPATCH','adapter','Adapter','buffer'):
|
|
144
154
|
name = member[0]
|
|
145
155
|
req = 0
|
|
146
156
|
cat = "Additional"
|
iop/cls/IOP/Common.cls
CHANGED
|
@@ -19,6 +19,18 @@ Property %settings As %String(MAXLEN = "");
|
|
|
19
19
|
/// Instance of class
|
|
20
20
|
Property %class As %SYS.Python;
|
|
21
21
|
|
|
22
|
+
Method %OnNew(pConfigName As %String) As %Status
|
|
23
|
+
{
|
|
24
|
+
set tSC = $$$OK
|
|
25
|
+
try {
|
|
26
|
+
$$$ThrowOnError(..Connect())
|
|
27
|
+
$$$ThrowOnError($method($this,"initConfig",.pConfigName)) ; call subclass
|
|
28
|
+
} catch ex {
|
|
29
|
+
set tSC = ex.AsStatus()
|
|
30
|
+
}
|
|
31
|
+
quit tSC
|
|
32
|
+
}
|
|
33
|
+
|
|
22
34
|
/// Get Class
|
|
23
35
|
Method GetClass() As %SYS.Python
|
|
24
36
|
{
|
|
@@ -41,7 +53,6 @@ Method OnInit() As %Status
|
|
|
41
53
|
{
|
|
42
54
|
set tSC = $$$OK
|
|
43
55
|
try {
|
|
44
|
-
$$$ThrowOnError(..Connect())
|
|
45
56
|
do ..%class."_dispatch_on_init"($this)
|
|
46
57
|
} catch ex {
|
|
47
58
|
set tSC = ex.AsStatus()
|
|
@@ -199,7 +210,6 @@ ClassMethod OnGetConnections(
|
|
|
199
210
|
Catch ex {
|
|
200
211
|
}
|
|
201
212
|
|
|
202
|
-
|
|
203
213
|
// Get settings
|
|
204
214
|
do pItem.GetModifiedSetting("%classpaths", .tClasspaths)
|
|
205
215
|
do pItem.GetModifiedSetting("%classname", .tClassname)
|
iop/cls/IOP/Utils.cls
CHANGED
|
@@ -275,6 +275,54 @@ ClassMethod GenerateProxyClass(
|
|
|
275
275
|
set:($Case(tSuperClass,"IOP.InboundAdapter":1,"IOP.OutboundAdapter":1,:0)) type = "Adapter"
|
|
276
276
|
set tSETTINGSParamValue = $REPLACE(tSETTINGSParamValue,"$type",type)
|
|
277
277
|
|
|
278
|
+
#dim tCustomProp As %Dictionary.PropertyDefinition
|
|
279
|
+
#dim tPropInfo,tPropName,tDataType,tDefault,tDesc,tPropCat,tContext As %String
|
|
280
|
+
|
|
281
|
+
set builtins = ##class(%SYS.Python).Import("builtins")
|
|
282
|
+
#; each remote setting is of form $lb(propName,dataType,defaultVal,required,category,description,editorContext)
|
|
283
|
+
For i=0:1:builtins.len(pRemoteSettings)-1 {
|
|
284
|
+
Set tPropInfo = pRemoteSettings."__getitem__"(i)
|
|
285
|
+
Continue:""=tPropInfo ; this shouldn't happen, but just in case
|
|
286
|
+
Set tPropName = tPropInfo."__getitem__"(0)
|
|
287
|
+
Set tDataType = tPropInfo."__getitem__"(1)
|
|
288
|
+
If (""=tPropName) || (""=tDataType) {
|
|
289
|
+
Set tSC = $$$ERROR($$$EnsErrGeneral,"All properties must have a name and datatype defined")
|
|
290
|
+
Quit
|
|
291
|
+
}
|
|
292
|
+
Set tCustomProp = ##class(%Dictionary.PropertyDefinition).%New()
|
|
293
|
+
Set tCustomProp.Name = tPropName
|
|
294
|
+
If $Case(tDataType,"String":1,"Integer":1,"Boolean":1,"Numeric":1,:0) {
|
|
295
|
+
Set tDataType = "%"_tDataType
|
|
296
|
+
} ElseIf '##class(%Dictionary.ClassDefinition).%ExistsId(tDataType) {
|
|
297
|
+
Set tDataType = "%String"
|
|
298
|
+
}
|
|
299
|
+
Set tCustomProp.Type = tDataType
|
|
300
|
+
If tDataType["%String" {
|
|
301
|
+
Set tSC = tCustomProp.Parameters.SetAt("255","MAXLEN")
|
|
302
|
+
Quit:$$$ISERR(tSC)
|
|
303
|
+
}
|
|
304
|
+
Set tDefault = tPropInfo."__getitem__"(2)
|
|
305
|
+
If ""'=tDefault {
|
|
306
|
+
Set tCustomProp.InitialExpression = $$$quote(tDefault)
|
|
307
|
+
}
|
|
308
|
+
Set tCustomProp.Required = tPropInfo."__getitem__"(3)
|
|
309
|
+
|
|
310
|
+
Set tSC = tCOSClass.Properties.Insert(tCustomProp)
|
|
311
|
+
Quit:$$$ISERR(tSC)
|
|
312
|
+
|
|
313
|
+
#dim tMethod As %Dictionary.MethodDefinition = ##class(%Dictionary.MethodDefinition).%New()
|
|
314
|
+
Set tMethod.Name = tPropName_"Set"
|
|
315
|
+
Set tMethod.ReturnType = "%Status"
|
|
316
|
+
Set tMethod.FormalSpec = "value:"_tDataType
|
|
317
|
+
Do tMethod.Implementation.WriteLine(" Set ..%class."""_tPropName_""" = value")
|
|
318
|
+
Do tMethod.Implementation.WriteLine(" Quit $$$OK")
|
|
319
|
+
Set tSC = tCOSClass.Methods.Insert(tMethod)
|
|
320
|
+
|
|
321
|
+
Set tPropCat = "Python Attributes"
|
|
322
|
+
Set tSETTINGSParamValue = tSETTINGSParamValue_","_tPropName_":"_tPropCat
|
|
323
|
+
}
|
|
324
|
+
Quit:$$$ISERR(tSC)
|
|
325
|
+
|
|
278
326
|
#dim tSETTINGSParam As %Dictionary.ParameterDefinition = ##class(%Dictionary.ParameterDefinition).%New()
|
|
279
327
|
Set tSETTINGSParam.Name = "SETTINGS"
|
|
280
328
|
Set tSETTINGSParam.Default = tSETTINGSParamValue
|
{iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/RECORD
RENAMED
|
@@ -98,7 +98,7 @@ iop/_business_operation.py,sha256=ml4BIn1BfrGx8AUGISFR71DZIUCP8vZ2yn9SQjaSzTM,30
|
|
|
98
98
|
iop/_business_process.py,sha256=hj6nDIP5Mz5UYbm0vDjvs9lPSEYVQxGJl6tQRcDGTBk,8548
|
|
99
99
|
iop/_business_service.py,sha256=lPTp3_tcLTOWvHlE_YwrcImLGf1PJBUgIOrV-8ctFLw,3851
|
|
100
100
|
iop/_cli.py,sha256=IwvVxglSTVkCDXwANLMqnd8mfxGtWB6GjBSdEy8EMm0,7551
|
|
101
|
-
iop/_common.py,sha256=
|
|
101
|
+
iop/_common.py,sha256=oFYcCFdKXFtucLb8qrKvARo4UbiDGtMSWR2sTUOCHps,13343
|
|
102
102
|
iop/_decorators.py,sha256=ZpgEETLdKWv58AoSMfXnm3_mA-6qPphIegjG-npDgwg,2324
|
|
103
103
|
iop/_director.py,sha256=DrswFoqJ6IG62hkW-0ZffTtZdxw6KNozlZSIq3O6d-o,11629
|
|
104
104
|
iop/_dispatch.py,sha256=I3TAhvTuk8j4VcROI9vAitJ0a7Nk1BYAWKRrLeNsjr0,3203
|
|
@@ -114,14 +114,14 @@ iop/_utils.py,sha256=CUqxhjaOdAG8IuPnk0j7L__qlj0JhR5Ajhf3Lm5omzA,19921
|
|
|
114
114
|
iop/cls/IOP/BusinessOperation.cls,sha256=lrymqZ8wHl5kJjXwdjbQVs5sScV__yIWGh-oGbiB_X0,914
|
|
115
115
|
iop/cls/IOP/BusinessProcess.cls,sha256=s3t38w1ykHqM26ETcbCYLt0ocjZyVVahm-_USZkuJ1E,2855
|
|
116
116
|
iop/cls/IOP/BusinessService.cls,sha256=7ebn32J9PiZXUgXuh5Xxm_7X6zHBiqkJr9c_dWxbPO8,1021
|
|
117
|
-
iop/cls/IOP/Common.cls,sha256=
|
|
117
|
+
iop/cls/IOP/Common.cls,sha256=tWxS-0gyNooCXIp-GVU_sZcPqr5iu4tCNm5aYrYDUOI,11467
|
|
118
118
|
iop/cls/IOP/Director.cls,sha256=M43LoTb6lwSr0J81RFxi1YLW1mwda09wQ7Xqr3nBtxo,2008
|
|
119
119
|
iop/cls/IOP/InboundAdapter.cls,sha256=GeoCm6q5HcLJ5e4VxgqXiErJXqolBbpKwpunaNzpvjU,610
|
|
120
120
|
iop/cls/IOP/Message.cls,sha256=ZrYQHosgfTG9wv7i-WQ8j71YXZMmL4_mN16xtIDwcRg,25180
|
|
121
121
|
iop/cls/IOP/OutboundAdapter.cls,sha256=9eOwy5ojwcTzwrHs6LNrFQvUD8aqcoNCZrILN1ycdDM,958
|
|
122
122
|
iop/cls/IOP/PickleMessage.cls,sha256=S3y7AClQ8mAILjxPuHdCjGosBZYzGbUQ5WTv4mYPNMQ,1673
|
|
123
123
|
iop/cls/IOP/Test.cls,sha256=gAC9PEfMZsvAEWIa241-ug2FWAhITbN1SOispZzJPnI,2094
|
|
124
|
-
iop/cls/IOP/Utils.cls,sha256=
|
|
124
|
+
iop/cls/IOP/Utils.cls,sha256=gQBp0lC4F7FWkv1JEDe45qsaLcVlg995t2th46nDGx8,15745
|
|
125
125
|
iop/cls/IOP/Duplex/Operation.cls,sha256=K_fmgeLjPZQbHgNrc0kd6DUQoW0fDn1VHQjJxHo95Zk,525
|
|
126
126
|
iop/cls/IOP/Duplex/Process.cls,sha256=xbefZ4z84a_IUhavWN6P_gZBzqkdJ5XRTXxro6iDvAg,6986
|
|
127
127
|
iop/cls/IOP/Duplex/Service.cls,sha256=sTMOQUCMBgVitmQkM8bbsrmrRtCdj91VlctJ3I7b8WU,161
|
|
@@ -135,9 +135,9 @@ iop/cls/IOP/Service/WSGI.cls,sha256=VLNCXEwmHW9dBnE51uGE1nvGX6T4HjhqePT3LVhsjAE,
|
|
|
135
135
|
iop/wsgi/handlers.py,sha256=NrFLo_YbAh-x_PlWhAiWkQnUUN2Ss9HoEm63dDWCBpQ,2947
|
|
136
136
|
irisnative/_IRISNative.py,sha256=HQ4nBhc8t8_5OtxdMG-kx1aa-T1znf2I8obZOPLOPzg,665
|
|
137
137
|
irisnative/__init__.py,sha256=6YmvBLQSURsCPKaNg7LK-xpo4ipDjrlhKuwdfdNb3Kg,341
|
|
138
|
-
iris_pex_embedded_python-3.4.
|
|
139
|
-
iris_pex_embedded_python-3.4.
|
|
140
|
-
iris_pex_embedded_python-3.4.
|
|
141
|
-
iris_pex_embedded_python-3.4.
|
|
142
|
-
iris_pex_embedded_python-3.4.
|
|
143
|
-
iris_pex_embedded_python-3.4.
|
|
138
|
+
iris_pex_embedded_python-3.4.0b7.dist-info/LICENSE,sha256=rZSiBFId_sfbJ6RL0GjjPX-InNLkNS9ou7eQsikciI8,1089
|
|
139
|
+
iris_pex_embedded_python-3.4.0b7.dist-info/METADATA,sha256=N3dqS9eMf4W1oGGKfjC2cPyzacebPNgTDvR9JdojbaY,4397
|
|
140
|
+
iris_pex_embedded_python-3.4.0b7.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
141
|
+
iris_pex_embedded_python-3.4.0b7.dist-info/entry_points.txt,sha256=pj-i4LSDyiSP6xpHlVjMCbg1Pik7dC3_sdGY3Yp9Vhk,38
|
|
142
|
+
iris_pex_embedded_python-3.4.0b7.dist-info/top_level.txt,sha256=VWDlX4YF4qFVRGrG3-Gs0kgREol02i8gIpsHNbhfFPw,42
|
|
143
|
+
iris_pex_embedded_python-3.4.0b7.dist-info/RECORD,,
|
{iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/LICENSE
RENAMED
|
File without changes
|
{iris_pex_embedded_python-3.4.0b5.dist-info → iris_pex_embedded_python-3.4.0b7.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|