zeroc-ice 3.8.0__cp313-cp313-macosx_10_13_universal2.whl → 3.8.0.post1__cp313-cp313-macosx_10_13_universal2.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.
- Ice/BTEndpointType.py +7 -0
- Ice/BTSEndpointType.py +7 -0
- Ice/Blobject.py +1 -1
- Ice/Communicator.py +130 -118
- Ice/CompressBatch.py +12 -12
- Ice/Current.py +5 -6
- Ice/EndpointSelectionType.py +8 -8
- Ice/EventLoopAdapter.py +4 -4
- Ice/Exception.py +6 -8
- Ice/FormatType.py +8 -1
- Ice/Future.py +78 -78
- Ice/IcePyTypes.py +2 -0
- Ice/ImplicitContext.py +28 -35
- Ice/InitializationData.py +23 -22
- Ice/InvocationFuture.py +31 -34
- Ice/LocalException.py +1 -1
- Ice/LocalExceptions.py +82 -94
- Ice/LogMessageType.py +16 -15
- Ice/Logger.py +10 -10
- Ice/Object.py +22 -17
- Ice/ObjectAdapter.py +200 -167
- Ice/ObjectPrx.py +196 -202
- Ice/OperationMode.py +19 -14
- Ice/ProcessLogger.py +18 -2
- Ice/Properties.py +63 -79
- Ice/Proxy.py +73 -10
- Ice/ReplyStatus.py +42 -35
- Ice/SSLEndpointType.py +7 -0
- Ice/ServantLocator.py +30 -35
- Ice/SliceInfo.py +3 -3
- Ice/SlicedData.py +1 -1
- Ice/TCPEndpointType.py +7 -0
- Ice/ToStringMode.py +19 -19
- Ice/UDPEndpointType.py +7 -0
- Ice/URIEndpointType.py +7 -0
- Ice/UnknownSlicedValue.py +11 -3
- Ice/UserException.py +1 -1
- Ice/Util.py +27 -26
- Ice/Value.py +7 -7
- Ice/WSEndpointType.py +7 -0
- Ice/WSSEndpointType.py +7 -0
- Ice/__init__.py +2 -0
- Ice/iAPEndpointType.py +7 -0
- Ice/iAPSEndpointType.py +7 -0
- IceGrid/LoadSample.py +12 -12
- IceGrid/ServerState.py +29 -25
- IcePy-stubs/__init__.pyi +151 -152
- IcePy.cpython-313-darwin.so +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/METADATA +1 -1
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/RECORD +53 -53
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/WHEEL +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/entry_points.txt +0 -0
- {zeroc_ice-3.8.0.dist-info → zeroc_ice-3.8.0.post1.dist-info}/top_level.txt +0 -0
Ice/OperationMode.py
CHANGED
|
@@ -11,27 +11,32 @@ class OperationMode(Enum):
|
|
|
11
11
|
"""
|
|
12
12
|
Specifies if an operation is idempotent, which affects the retry behavior of the Ice client runtime.
|
|
13
13
|
|
|
14
|
-
Enumerators:
|
|
15
|
-
|
|
16
|
-
- Normal:
|
|
17
|
-
A non-idempotent operation (the default). The Ice client runtime guarantees that it will not violate
|
|
18
|
-
at-most-once semantics for operations with this mode.
|
|
19
|
-
|
|
20
|
-
- Nonmutating:
|
|
21
|
-
Equivalent to :class:`Ice.OperationMode.Idempotent`, but deprecated.
|
|
22
|
-
|
|
23
|
-
- Idempotent:
|
|
24
|
-
An idempotent operation. The Ice client runtime does not guarantee at-most-once semantics for such an
|
|
25
|
-
operation.
|
|
26
|
-
|
|
27
14
|
Notes
|
|
28
15
|
-----
|
|
29
16
|
The Slice compiler generated this enum class from Slice enumeration ``::Ice::OperationMode``.
|
|
30
17
|
"""
|
|
31
|
-
|
|
18
|
+
|
|
32
19
|
Normal = 0
|
|
20
|
+
"""
|
|
21
|
+
A non-idempotent operation (the default). The Ice client runtime guarantees that it will not violate
|
|
22
|
+
at-most-once semantics for operations with this mode.
|
|
23
|
+
"""
|
|
24
|
+
|
|
33
25
|
Nonmutating = 1
|
|
26
|
+
"""
|
|
27
|
+
Equivalent to :class:`Ice.OperationMode.Idempotent`, but deprecated.
|
|
28
|
+
"""
|
|
29
|
+
|
|
34
30
|
Idempotent = 2
|
|
31
|
+
"""
|
|
32
|
+
An idempotent operation. The Ice client runtime does not guarantee at-most-once semantics for such an
|
|
33
|
+
operation.
|
|
34
|
+
|
|
35
|
+
Notes
|
|
36
|
+
-----
|
|
37
|
+
When an operation is idempotent, the Ice runtime will attempt to transparently recover from certain
|
|
38
|
+
runtime errors by re-issuing a failed request transparently.
|
|
39
|
+
"""
|
|
35
40
|
|
|
36
41
|
_Ice_OperationMode_t = IcePy.defineEnum(
|
|
37
42
|
"::Ice::OperationMode",
|
Ice/ProcessLogger.py
CHANGED
|
@@ -9,7 +9,15 @@ __name__ = "Ice"
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
def getProcessLogger() -> Logger:
|
|
12
|
-
"""
|
|
12
|
+
"""
|
|
13
|
+
Gets the per-process logger. This logger is used by all communicators that do not have their own specific logger
|
|
14
|
+
configured at the time the communicator is created.
|
|
15
|
+
|
|
16
|
+
Returns
|
|
17
|
+
-------
|
|
18
|
+
Ice.Logger
|
|
19
|
+
The current per-process logger instance.
|
|
20
|
+
"""
|
|
13
21
|
logger = IcePy.getProcessLogger()
|
|
14
22
|
if isinstance(logger, Logger):
|
|
15
23
|
return logger
|
|
@@ -18,7 +26,15 @@ def getProcessLogger() -> Logger:
|
|
|
18
26
|
|
|
19
27
|
|
|
20
28
|
def setProcessLogger(logger: Logger):
|
|
21
|
-
"""
|
|
29
|
+
"""
|
|
30
|
+
Sets the per-process logger. This logger is used by all communicators that do not have their own specific logger
|
|
31
|
+
configured at the time the communicator is created.
|
|
32
|
+
|
|
33
|
+
Parameters
|
|
34
|
+
----------
|
|
35
|
+
logger : Ice.Logger
|
|
36
|
+
The new per-process logger instance.
|
|
37
|
+
"""
|
|
22
38
|
IcePy.setProcessLogger(logger)
|
|
23
39
|
|
|
24
40
|
|
Ice/Properties.py
CHANGED
|
@@ -10,7 +10,7 @@ class Properties:
|
|
|
10
10
|
"""
|
|
11
11
|
Represents a set of properties used to configure Ice and Ice-based applications. A property is a key/value pair,
|
|
12
12
|
where both the key and the value are strings. By convention, property keys should have the form
|
|
13
|
-
application-name[.category[.sub-category]].name
|
|
13
|
+
``application-name[.category[.sub-category]].name``.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
@overload
|
|
@@ -30,13 +30,13 @@ class Properties:
|
|
|
30
30
|
|
|
31
31
|
Parameters
|
|
32
32
|
----------
|
|
33
|
-
args : list
|
|
33
|
+
args : list[str] | None, optional
|
|
34
34
|
The command-line arguments. Arguments starting with ``--`` and one of the reserved prefixes
|
|
35
35
|
(``Ice``, ``IceSSL``, etc.) are parsed as properties and removed from the list. If there is
|
|
36
36
|
an argument starting with ``--Ice.Config``, the specified configuration file is loaded. When
|
|
37
37
|
the same property is set in both a configuration file and a command-line argument, the
|
|
38
38
|
command-line setting takes precedence.
|
|
39
|
-
defaults :
|
|
39
|
+
defaults : Self | None, optional
|
|
40
40
|
Default values for the new Properties object. Settings in configuration files and command-line
|
|
41
41
|
arguments override these defaults.
|
|
42
42
|
|
|
@@ -71,9 +71,7 @@ class Properties:
|
|
|
71
71
|
|
|
72
72
|
def getProperty(self, key: str) -> str:
|
|
73
73
|
"""
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
If the property is not set, an empty string is returned.
|
|
74
|
+
Gets a property by key.
|
|
77
75
|
|
|
78
76
|
Parameters
|
|
79
77
|
----------
|
|
@@ -83,15 +81,13 @@ class Properties:
|
|
|
83
81
|
Returns
|
|
84
82
|
-------
|
|
85
83
|
str
|
|
86
|
-
The property value, or
|
|
84
|
+
The property value, or the empty string if the property is not set.
|
|
87
85
|
"""
|
|
88
86
|
return self._impl.getProperty(key)
|
|
89
87
|
|
|
90
88
|
def getIceProperty(self, key: str) -> str:
|
|
91
89
|
"""
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
If the property is not set, its default value is returned.
|
|
90
|
+
Gets an Ice property by key.
|
|
95
91
|
|
|
96
92
|
Parameters
|
|
97
93
|
----------
|
|
@@ -101,40 +97,36 @@ class Properties:
|
|
|
101
97
|
Returns
|
|
102
98
|
-------
|
|
103
99
|
str
|
|
104
|
-
The property value, or the default value if the property is not set.
|
|
100
|
+
The property value, or the default value for this property if the property is not set.
|
|
105
101
|
|
|
106
102
|
Raises
|
|
107
103
|
------
|
|
108
104
|
PropertyException
|
|
109
|
-
|
|
105
|
+
If the property is not a known Ice property.
|
|
110
106
|
"""
|
|
111
107
|
return self._impl.getIceProperty(key)
|
|
112
108
|
|
|
113
109
|
def getPropertyWithDefault(self, key: str, value: str) -> str:
|
|
114
110
|
"""
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
If the property is not set, the given default value is returned.
|
|
111
|
+
Gets a property by key.
|
|
118
112
|
|
|
119
113
|
Parameters
|
|
120
114
|
----------
|
|
121
115
|
key : str
|
|
122
116
|
The property key.
|
|
123
117
|
value : str
|
|
124
|
-
The default value to
|
|
118
|
+
The default value to return if the property is not set.
|
|
125
119
|
|
|
126
120
|
Returns
|
|
127
121
|
-------
|
|
128
122
|
str
|
|
129
|
-
The property value
|
|
123
|
+
The property value or the default value if the property is not set.
|
|
130
124
|
"""
|
|
131
125
|
return self._impl.getPropertyWithDefault(key, value)
|
|
132
126
|
|
|
133
127
|
def getPropertyAsInt(self, key: str) -> int:
|
|
134
128
|
"""
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
If the property is not set, 0 is returned.
|
|
129
|
+
Gets a property as an integer.
|
|
138
130
|
|
|
139
131
|
Parameters
|
|
140
132
|
----------
|
|
@@ -144,20 +136,18 @@ class Properties:
|
|
|
144
136
|
Returns
|
|
145
137
|
-------
|
|
146
138
|
int
|
|
147
|
-
The property value interpreted as an integer, or 0 if the property is not set.
|
|
139
|
+
The property value interpreted as an integer, or ``0`` if the property is not set.
|
|
148
140
|
|
|
149
141
|
Raises
|
|
150
142
|
------
|
|
151
143
|
PropertyException
|
|
152
|
-
|
|
144
|
+
If the property value is not a valid integer.
|
|
153
145
|
"""
|
|
154
146
|
return self._impl.getPropertyAsInt(key)
|
|
155
147
|
|
|
156
148
|
def getIcePropertyAsInt(self, key: str) -> int:
|
|
157
149
|
"""
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
If the property is not set, its default value is returned.
|
|
150
|
+
Gets an Ice property as an integer.
|
|
161
151
|
|
|
162
152
|
Parameters
|
|
163
153
|
----------
|
|
@@ -172,43 +162,41 @@ class Properties:
|
|
|
172
162
|
Raises
|
|
173
163
|
------
|
|
174
164
|
PropertyException
|
|
175
|
-
|
|
165
|
+
If the property is not a known Ice property or the value is not a valid integer.
|
|
176
166
|
"""
|
|
177
167
|
return self._impl.getIcePropertyAsInt(key)
|
|
178
168
|
|
|
179
169
|
def getPropertyAsIntWithDefault(self, key: str, value: int) -> int:
|
|
180
170
|
"""
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
If the property is not set, the given default value is returned.
|
|
171
|
+
Gets a property as an integer.
|
|
184
172
|
|
|
185
173
|
Parameters
|
|
186
174
|
----------
|
|
187
175
|
key : str
|
|
188
176
|
The property key.
|
|
189
177
|
value : int
|
|
190
|
-
The default value to
|
|
178
|
+
The default value to return if the property does not exist.
|
|
191
179
|
|
|
192
180
|
Returns
|
|
193
181
|
-------
|
|
194
182
|
int
|
|
195
|
-
The property value interpreted as an integer, or the default value if the property
|
|
183
|
+
The property value interpreted as an integer, or the default value if the property is not set.
|
|
196
184
|
|
|
197
185
|
Raises
|
|
198
186
|
------
|
|
199
187
|
PropertyException
|
|
200
|
-
|
|
188
|
+
If the property value is not a valid integer.
|
|
201
189
|
"""
|
|
202
190
|
return self._impl.getPropertyAsIntWithDefault(key, value)
|
|
203
191
|
|
|
204
192
|
def getPropertyAsList(self, key: str) -> list[str]:
|
|
205
193
|
"""
|
|
206
|
-
|
|
194
|
+
Gets a property as a list of strings.
|
|
207
195
|
|
|
208
|
-
The strings must be separated by whitespace or comma.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
196
|
+
The strings must be separated by whitespace or comma. The strings in the list can contain whitespace and commas
|
|
197
|
+
if they are enclosed in single or double quotes. If quotes are mismatched, an empty list is returned.
|
|
198
|
+
Within single quotes or double quotes, you can escape the quote in question with a backslash,
|
|
199
|
+
e.g. O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
|
212
200
|
|
|
213
201
|
Parameters
|
|
214
202
|
----------
|
|
@@ -217,19 +205,19 @@ class Properties:
|
|
|
217
205
|
|
|
218
206
|
Returns
|
|
219
207
|
-------
|
|
220
|
-
list
|
|
221
|
-
The property value interpreted as a list of strings.
|
|
208
|
+
list[str]
|
|
209
|
+
The property value interpreted as a list of strings, or an empty list if the property is not set.
|
|
222
210
|
"""
|
|
223
211
|
return self._impl.getPropertyAsList(key)
|
|
224
212
|
|
|
225
213
|
def getIcePropertyAsList(self, key: str) -> list[str]:
|
|
226
214
|
"""
|
|
227
|
-
|
|
215
|
+
Gets an Ice property as a list of strings.
|
|
228
216
|
|
|
229
|
-
The strings must be separated by whitespace or comma.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
217
|
+
The strings must be separated by whitespace or comma. The strings in the list can contain whitespace and commas
|
|
218
|
+
if they are enclosed in single or double quotes. If quotes are mismatched, the default list is returned.
|
|
219
|
+
Within single quotes or double quotes, you can escape the quote in question with a backslash,
|
|
220
|
+
e.g. O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
|
233
221
|
|
|
234
222
|
Parameters
|
|
235
223
|
----------
|
|
@@ -238,62 +226,59 @@ class Properties:
|
|
|
238
226
|
|
|
239
227
|
Returns
|
|
240
228
|
-------
|
|
241
|
-
list
|
|
229
|
+
list[str]
|
|
242
230
|
The property value interpreted as a list of strings, or the default value if the property is not set.
|
|
243
231
|
|
|
244
232
|
Raises
|
|
245
233
|
------
|
|
246
234
|
PropertyException
|
|
247
|
-
|
|
235
|
+
If the property is not a known Ice property.
|
|
248
236
|
"""
|
|
249
237
|
return self._impl.getIcePropertyAsList(key)
|
|
250
238
|
|
|
251
239
|
def getPropertyAsListWithDefault(self, key: str, value: list[str]) -> list[str]:
|
|
252
240
|
"""
|
|
253
|
-
|
|
241
|
+
Gets a property as a list of strings.
|
|
254
242
|
|
|
255
|
-
The strings must be separated by whitespace or comma.
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
243
|
+
The strings must be separated by whitespace or comma. The strings in the list can contain whitespace and commas
|
|
244
|
+
if they are enclosed in single or double quotes. If quotes are mismatched, the default list is returned.
|
|
245
|
+
Within single quotes or double quotes, you can escape the quote in question with a backslash,
|
|
246
|
+
e.g. O'Reilly can be written as O'Reilly, "O'Reilly" or 'O\'Reilly'.
|
|
259
247
|
|
|
260
248
|
Parameters
|
|
261
249
|
----------
|
|
262
250
|
key : str
|
|
263
251
|
The property key.
|
|
264
|
-
value : list
|
|
252
|
+
value : list[str]
|
|
265
253
|
The default value to use if the property is not set.
|
|
266
254
|
|
|
267
255
|
Returns
|
|
268
256
|
-------
|
|
269
|
-
list
|
|
257
|
+
list[str]
|
|
270
258
|
The property value interpreted as a list of strings, or the default value if the property is not set.
|
|
271
259
|
"""
|
|
272
260
|
return self._impl.getPropertyAsListWithDefault(key, value)
|
|
273
261
|
|
|
274
262
|
def getPropertiesForPrefix(self, prefix: str) -> dict[str, str]:
|
|
275
263
|
"""
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
If the prefix is an empty string, then all properties are returned.
|
|
264
|
+
Gets all properties whose keys begin with the given prefix.
|
|
265
|
+
If ``prefix`` is the empty string, then all properties are returned.
|
|
279
266
|
|
|
280
267
|
Parameters
|
|
281
268
|
----------
|
|
282
269
|
prefix : str
|
|
283
|
-
The prefix to search for
|
|
270
|
+
The prefix to search for.
|
|
284
271
|
|
|
285
272
|
Returns
|
|
286
273
|
-------
|
|
287
274
|
dict[str, str]
|
|
288
|
-
The matching property set
|
|
275
|
+
The matching property set.
|
|
289
276
|
"""
|
|
290
277
|
return self._impl.getPropertiesForPrefix(prefix)
|
|
291
278
|
|
|
292
279
|
def setProperty(self, key: str, value: str) -> None:
|
|
293
280
|
"""
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
To unset a property, set it to the empty string.
|
|
281
|
+
Sets a property. To unset a property, set it to the empty string.
|
|
297
282
|
|
|
298
283
|
Parameters
|
|
299
284
|
----------
|
|
@@ -306,60 +291,59 @@ class Properties:
|
|
|
306
291
|
|
|
307
292
|
def getCommandLineOptions(self) -> list[str]:
|
|
308
293
|
"""
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
Each element of the returned sequence is a command-line option of the form --key=value.
|
|
294
|
+
Gets a sequence of command-line options that is equivalent to this property set.
|
|
295
|
+
Each element of the returned sequence is a command-line option of the form ``--key=value``.
|
|
312
296
|
|
|
313
297
|
Returns
|
|
314
298
|
-------
|
|
315
|
-
list
|
|
299
|
+
list[str]
|
|
316
300
|
The command line options for this property set.
|
|
317
301
|
"""
|
|
318
302
|
return self._impl.getCommandLineOptions()
|
|
319
303
|
|
|
320
304
|
def parseCommandLineOptions(self, prefix: str, options: list[str]) -> list[str]:
|
|
321
305
|
"""
|
|
322
|
-
|
|
306
|
+
Converts a sequence of command-line options into properties.
|
|
323
307
|
|
|
324
|
-
All options that
|
|
325
|
-
begin with
|
|
308
|
+
All options that start with ``--prefix.`` are converted into properties.
|
|
309
|
+
If the prefix is empty, all options that begin with ``--`` are converted to properties.
|
|
326
310
|
|
|
327
311
|
Parameters
|
|
328
312
|
----------
|
|
329
313
|
prefix : str
|
|
330
|
-
The property prefix, or
|
|
331
|
-
options : list
|
|
314
|
+
The property prefix, or the empty string to convert all options starting with ``--``.
|
|
315
|
+
options : list[str]
|
|
332
316
|
The command-line options.
|
|
333
317
|
|
|
334
318
|
Returns
|
|
335
319
|
-------
|
|
336
|
-
list
|
|
320
|
+
list[str]
|
|
337
321
|
The command-line options that do not start with the specified prefix, in their original order.
|
|
338
322
|
"""
|
|
339
323
|
return self._impl.parseCommandLineOptions(prefix, options)
|
|
340
324
|
|
|
341
325
|
def parseIceCommandLineOptions(self, options: list[str]) -> list[str]:
|
|
342
326
|
"""
|
|
343
|
-
|
|
327
|
+
Converts a sequence of command-line options into properties.
|
|
344
328
|
|
|
345
|
-
All options that
|
|
346
|
-
|
|
329
|
+
All options that start with one of the reserved Ice prefixes (``--Ice``, ``--IceSSL``, etc.) are converted into
|
|
330
|
+
properties.
|
|
347
331
|
|
|
348
332
|
Parameters
|
|
349
333
|
----------
|
|
350
|
-
options : list
|
|
334
|
+
options : list[str]
|
|
351
335
|
The command-line options.
|
|
352
336
|
|
|
353
337
|
Returns
|
|
354
338
|
-------
|
|
355
|
-
list
|
|
356
|
-
The command-line options that do not start with one of the
|
|
339
|
+
list[str]
|
|
340
|
+
The command-line options that do not start with one of the reserved prefixes, in their original order.
|
|
357
341
|
"""
|
|
358
342
|
return self._impl.parseIceCommandLineOptions(options)
|
|
359
343
|
|
|
360
344
|
def load(self, file: str) -> None:
|
|
361
345
|
"""
|
|
362
|
-
|
|
346
|
+
Loads properties from a file.
|
|
363
347
|
|
|
364
348
|
Parameters
|
|
365
349
|
----------
|
|
@@ -370,7 +354,7 @@ class Properties:
|
|
|
370
354
|
|
|
371
355
|
def clone(self) -> "Properties":
|
|
372
356
|
"""
|
|
373
|
-
|
|
357
|
+
Creates a copy of this property set.
|
|
374
358
|
|
|
375
359
|
Returns
|
|
376
360
|
-------
|
Ice/Proxy.py
CHANGED
|
@@ -2,23 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
import IcePy
|
|
4
4
|
|
|
5
|
+
from .ObjectPrx import ObjectPrx
|
|
6
|
+
|
|
5
7
|
IcePy._t_ObjectPrx = IcePy.defineProxy("::Ice::Object", IcePy.ObjectPrx)
|
|
6
8
|
|
|
7
9
|
__name__ = "Ice"
|
|
8
10
|
|
|
11
|
+
|
|
9
12
|
#
|
|
10
13
|
# Proxy comparison functions.
|
|
11
14
|
#
|
|
12
15
|
|
|
13
16
|
|
|
14
|
-
def proxyIdentityEqual(lhs:
|
|
15
|
-
"""
|
|
17
|
+
def proxyIdentityEqual(lhs: ObjectPrx | None, rhs: ObjectPrx | None) -> bool:
|
|
18
|
+
"""
|
|
19
|
+
Checks if the object identities of two proxies are equal.
|
|
20
|
+
|
|
21
|
+
Parameters
|
|
22
|
+
----------
|
|
23
|
+
lhs : Ice.ObjectPrx | None
|
|
24
|
+
A proxy.
|
|
25
|
+
rhs : Ice.ObjectPrx | None
|
|
26
|
+
A proxy.
|
|
27
|
+
|
|
28
|
+
Returns
|
|
29
|
+
-------
|
|
30
|
+
bool
|
|
31
|
+
``True`` if the identity in ``lhs`` is equal to the identity in ``rhs``,
|
|
32
|
+
``False`` otherwise.
|
|
33
|
+
"""
|
|
16
34
|
return proxyIdentityCompare(lhs, rhs) == 0
|
|
17
35
|
|
|
18
36
|
|
|
19
|
-
def proxyIdentityCompare(lhs:
|
|
20
|
-
"""
|
|
21
|
-
|
|
37
|
+
def proxyIdentityCompare(lhs: ObjectPrx | None, rhs: ObjectPrx | None) -> int:
|
|
38
|
+
"""
|
|
39
|
+
Compares the object identities of two proxies.
|
|
40
|
+
|
|
41
|
+
Parameters
|
|
42
|
+
----------
|
|
43
|
+
lhs : Ice.ObjectPrx | None
|
|
44
|
+
A proxy.
|
|
45
|
+
rhs : Ice.ObjectPrx | None
|
|
46
|
+
A proxy.
|
|
47
|
+
|
|
48
|
+
Returns
|
|
49
|
+
-------
|
|
50
|
+
int
|
|
51
|
+
``-1`` if the identity in ``lhs`` compares less than the identity in ``rhs``;
|
|
52
|
+
``0`` if the identities compare equal; ``1``, otherwise.
|
|
53
|
+
"""
|
|
54
|
+
if (lhs and not isinstance(lhs, ObjectPrx)) or (rhs and not isinstance(rhs, ObjectPrx)):
|
|
22
55
|
raise ValueError("argument is not a proxy")
|
|
23
56
|
if not lhs and not rhs:
|
|
24
57
|
return 0
|
|
@@ -33,14 +66,44 @@ def proxyIdentityCompare(lhs: IcePy.ObjectPrx | None, rhs: IcePy.ObjectPrx | Non
|
|
|
33
66
|
return (lid > rid) - (lid < rid)
|
|
34
67
|
|
|
35
68
|
|
|
36
|
-
def proxyIdentityAndFacetEqual(lhs:
|
|
37
|
-
"""
|
|
69
|
+
def proxyIdentityAndFacetEqual(lhs: ObjectPrx | None, rhs: ObjectPrx | None) -> bool:
|
|
70
|
+
"""
|
|
71
|
+
Checks if the object identities and facets of two proxies are equal.
|
|
72
|
+
|
|
73
|
+
Parameters
|
|
74
|
+
----------
|
|
75
|
+
lhs : Ice.ObjectPrx | None
|
|
76
|
+
A proxy.
|
|
77
|
+
rhs : Ice.ObjectPrx | None
|
|
78
|
+
A proxy.
|
|
79
|
+
|
|
80
|
+
Returns
|
|
81
|
+
-------
|
|
82
|
+
bool
|
|
83
|
+
``True`` if the identity and facet in ``lhs`` are equal to the identity and facet in ``rhs``,
|
|
84
|
+
``False`` otherwise.
|
|
85
|
+
"""
|
|
38
86
|
return proxyIdentityAndFacetCompare(lhs, rhs) == 0
|
|
39
87
|
|
|
40
88
|
|
|
41
|
-
def proxyIdentityAndFacetCompare(lhs:
|
|
42
|
-
"""
|
|
43
|
-
|
|
89
|
+
def proxyIdentityAndFacetCompare(lhs: ObjectPrx | None, rhs: ObjectPrx | None) -> int:
|
|
90
|
+
"""
|
|
91
|
+
Compares the object identities and facets of two proxies.
|
|
92
|
+
|
|
93
|
+
Parameters
|
|
94
|
+
----------
|
|
95
|
+
lhs : Ice.ObjectPrx | None
|
|
96
|
+
A proxy.
|
|
97
|
+
rhs : Ice.ObjectPrx | None
|
|
98
|
+
A proxy.
|
|
99
|
+
|
|
100
|
+
Returns
|
|
101
|
+
-------
|
|
102
|
+
int
|
|
103
|
+
``-1`` if the identity and facet in ``lhs`` compare less than the identity and
|
|
104
|
+
facet in ``rhs``; ``0`` if the identities and facets compare equal; ``1``, otherwise.
|
|
105
|
+
"""
|
|
106
|
+
if (lhs and not isinstance(lhs, ObjectPrx)) or (rhs and not isinstance(rhs, ObjectPrx)):
|
|
44
107
|
raise ValueError("argument is not a proxy")
|
|
45
108
|
if lhs is None and rhs is None:
|
|
46
109
|
return 0
|
Ice/ReplyStatus.py
CHANGED
|
@@ -13,55 +13,62 @@ class ReplyStatus(Enum):
|
|
|
13
13
|
A reply status can have any value in the range 0..255. Do not use this enum to marshal or unmarshal a reply
|
|
14
14
|
status unless you know its value corresponds to one of the enumerators defined below.
|
|
15
15
|
|
|
16
|
-
Enumerators:
|
|
17
|
-
|
|
18
|
-
- Ok:
|
|
19
|
-
The dispatch completed successfully.
|
|
20
|
-
|
|
21
|
-
- UserException:
|
|
22
|
-
The dispatch completed with a Slice user exception.
|
|
23
|
-
|
|
24
|
-
- ObjectNotExist:
|
|
25
|
-
The dispatch could not find an implementation for the target object.
|
|
26
|
-
|
|
27
|
-
- FacetNotExist:
|
|
28
|
-
The dispatch found an implementation for the target object but could not find the requested facet.
|
|
29
|
-
|
|
30
|
-
- OperationNotExist:
|
|
31
|
-
The dispatch found an implementation for the target object but could not find the requested operation.
|
|
32
|
-
|
|
33
|
-
- UnknownLocalException:
|
|
34
|
-
The dispatch failed with an Ice local exception.
|
|
35
|
-
|
|
36
|
-
- UnknownUserException:
|
|
37
|
-
The dispatch failed with a Slice user exception that does not conform to the exception specification of
|
|
38
|
-
the operation.
|
|
39
|
-
|
|
40
|
-
- UnknownException:
|
|
41
|
-
The dispatch failed with some other exception (neither an Ice local exception nor a Slice user exception).
|
|
42
|
-
|
|
43
|
-
- InvalidData:
|
|
44
|
-
The dispatch failed because the request payload could not be unmarshaled. It is typically due to a mismatch
|
|
45
|
-
in the Slice definitions used by the client and the server.
|
|
46
|
-
|
|
47
|
-
- Unauthorized:
|
|
48
|
-
The caller is not authorized to access the requested resource.
|
|
49
|
-
|
|
50
16
|
Notes
|
|
51
17
|
-----
|
|
52
18
|
The Slice compiler generated this enum class from Slice enumeration ``::Ice::ReplyStatus``.
|
|
53
19
|
"""
|
|
54
|
-
|
|
20
|
+
|
|
55
21
|
Ok = 0
|
|
22
|
+
"""
|
|
23
|
+
The dispatch completed successfully.
|
|
24
|
+
"""
|
|
25
|
+
|
|
56
26
|
UserException = 1
|
|
27
|
+
"""
|
|
28
|
+
The dispatch completed with a Slice user exception.
|
|
29
|
+
"""
|
|
30
|
+
|
|
57
31
|
ObjectNotExist = 2
|
|
32
|
+
"""
|
|
33
|
+
The dispatch could not find an implementation for the target object.
|
|
34
|
+
"""
|
|
35
|
+
|
|
58
36
|
FacetNotExist = 3
|
|
37
|
+
"""
|
|
38
|
+
The dispatch found an implementation for the target object but could not find the requested facet.
|
|
39
|
+
"""
|
|
40
|
+
|
|
59
41
|
OperationNotExist = 4
|
|
42
|
+
"""
|
|
43
|
+
The dispatch found an implementation for the target object but could not find the requested operation.
|
|
44
|
+
"""
|
|
45
|
+
|
|
60
46
|
UnknownLocalException = 5
|
|
47
|
+
"""
|
|
48
|
+
The dispatch failed with an Ice local exception.
|
|
49
|
+
"""
|
|
50
|
+
|
|
61
51
|
UnknownUserException = 6
|
|
52
|
+
"""
|
|
53
|
+
The dispatch failed with a Slice user exception that does not conform to the exception specification of
|
|
54
|
+
the operation.
|
|
55
|
+
"""
|
|
56
|
+
|
|
62
57
|
UnknownException = 7
|
|
58
|
+
"""
|
|
59
|
+
The dispatch failed with some other exception (neither an Ice local exception nor a Slice user exception).
|
|
60
|
+
"""
|
|
61
|
+
|
|
63
62
|
InvalidData = 8
|
|
63
|
+
"""
|
|
64
|
+
The dispatch failed because the request payload could not be unmarshaled. It is typically due to a mismatch
|
|
65
|
+
in the Slice definitions used by the client and the server.
|
|
66
|
+
"""
|
|
67
|
+
|
|
64
68
|
Unauthorized = 9
|
|
69
|
+
"""
|
|
70
|
+
The caller is not authorized to access the requested resource.
|
|
71
|
+
"""
|
|
65
72
|
|
|
66
73
|
_Ice_ReplyStatus_t = IcePy.defineEnum(
|
|
67
74
|
"::Ice::ReplyStatus",
|
Ice/SSLEndpointType.py
CHANGED