Revision e0e01d37 ncclient/operations/rpc.py
b/ncclient/operations/rpc.py | ||
---|---|---|
316 | 316 |
in :ref:`dtree`, and the result of :meth:`_request` returned.""" |
317 | 317 |
return self._request(self.SPEC) |
318 | 318 |
|
319 |
def _delivery_hook(self): |
|
320 |
"""Subclasses can implement this method. Will be called after |
|
321 |
initialising the :attr:`reply` or :attr:`error` attribute and before |
|
322 |
setting the :attr:`event`""" |
|
323 |
pass |
|
319 |
#def _delivery_hook(self):
|
|
320 |
# """Subclasses can implement this method. Will be called after
|
|
321 |
# initialising the :attr:`reply` or :attr:`error` attribute and before
|
|
322 |
# setting the :attr:`event`"""
|
|
323 |
# pass
|
|
324 | 324 |
|
325 | 325 |
def _assert(self, capability): |
326 | 326 |
"""Subclasses can use this method to verify that a capability is available |
... | ... | |
386 | 386 |
if async and not session.can_pipeline: |
387 | 387 |
raise UserWarning('Asynchronous mode not supported for this device/session') |
388 | 388 |
|
389 |
def set_raise_mode(self, choice): |
|
390 |
assert(choice in ('all', 'errors', 'none')) |
|
391 |
self._raise = choice |
|
392 |
|
|
389 | 393 |
def set_timeout(self, timeout): |
390 | 394 |
"""Set the timeout for synchronous waiting defining how long the RPC |
391 | 395 |
request will block on a reply before raising an error.""" |
Also available in: Unified diff