Revision e0e01d37

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."""
b/ncclient/operations/session.py
24 24

  
25 25
    SPEC = { 'tag': 'close-session' }
26 26

  
27
    def _delivery_hook(self):
28
        self.session.close()
27
    def request(self):
28
        try:
29
            return self._request(CloseSession.SPEC)
30
        finally:
31
            self.session.close()
29 32

  
30 33

  
31 34
class KillSession(RPC):
b/ncclient/transport/session.py
168 168
        been initialized it will be :const:`None`"""
169 169
        return self._id
170 170

  
171
    @property
172
    def can_pipeline(self):
173
        "Whether this session supports pipelining"
174
        return True
175

  
176 171

  
177 172
class SessionListener(object):
178 173

  
b/ncclient/transport/ssh.py
337 337
        """
338 338
        return self._transport
339 339

  
340
    @property
341
    def can_pipeline(self):
342
        if 'Cisco' in self._transport.remote_version:
343
            return False
344
        # elif ..
345
        return True

Also available in: Unified diff