Revision 98f9e162
b/docs/source/manager.rst | ||
---|---|---|
67 | 67 |
|
68 | 68 |
.. autoattribute:: async_mode |
69 | 69 |
|
70 |
.. autoattribute:: timeout |
|
71 |
|
|
70 | 72 |
.. autoattribute:: raise_mode |
71 | 73 |
|
72 | 74 |
.. autoattribute:: client_capabilities |
b/ncclient/manager.py | ||
---|---|---|
113 | 113 |
self.close_session() |
114 | 114 |
return False |
115 | 115 |
|
116 |
def __set_timeout(self, timeout): |
|
117 |
self._timeout = timeout |
|
118 |
|
|
116 | 119 |
def __set_async_mode(self, mode): |
117 | 120 |
self._async_mode = mode |
118 | 121 |
|
... | ... | |
165 | 168 |
async_mode = property(fget=lambda self: self._async_mode, fset=__set_async_mode) |
166 | 169 |
"Specify whether operations are executed asynchronously (`True`) or synchronously (`False`) (the default)." |
167 | 170 |
|
171 |
timeout = property(fget=lambda self: self._timeout, fset=__set_timeout) |
|
172 |
"Specify the timeout for synchronous RPC requests." |
|
168 | 173 |
|
169 | 174 |
raise_mode = property(fget=lambda self: self._raise_mode, fset=__set_raise_mode) |
170 | 175 |
"Specify which errors are raised as :exc:`~ncclient.operations.RPCError` exceptions. Valid values are the constants defined in :class:`~ncclient.operations.RaiseMode`. The default value is :attr:`~ncclient.operations.RaiseMode.ALL`." |
Also available in: Unified diff