Revision dd225c7a ncclient/operations/rpc.py

b/ncclient/operations/rpc.py
57 57
            return
58 58
        root = self._root = xml_.xml2ele(self._raw) # <rpc-reply> element
59 59
        # per rfc 4741 an <ok/> tag is sent when there are no errors or warnings
60
        ok = xml_.find(root, 'ok', nslist=[xml_.BASE_NS, xml_.CISCO_BS])
60
        ok = xml_.find(root, 'ok', nslist=xml_.NSLIST)
61 61
        if ok is not None:
62 62
            logger.debug('parsed [%s]' % ok.tag)
63 63
        else: # create RPCError objects from <rpc-error> elements
64
            error = xml_.find(root, 'rpc-error', nslist=[xml_.BASE_NS, xml_.CISCO_BS])
64
            error = xml_.find(root, 'rpc-error', nslist=xml_.NSLIST)
65 65
            if error is not None:
66 66
                logger.debug('parsed [%s]' % error.tag)
67 67
                for err in root.getiterator(error.tag):
......
272 272
        spec = {
273 273
            'tag': 'rpc',
274 274
            'attrib': {
275
                'xmlns': xml_.BASE_NS,
275
                'xmlns': xml_.BASE_NS_1_0,
276 276
                'message-id': self._id
277 277
                },
278 278
            'subtree': [ opspec ]
......
314 314
    def request(self, *args, **kwds):
315 315
        """Subclasses implement this method. Here, the operation is constructed
316 316
        in :ref:`dtree`, and the result of :meth:`_request` returned."""
317
        raise NotImplementedError
317
        return self._request(self.SPEC)
318 318

  
319 319
    def _delivery_hook(self):
320 320
        """Subclasses can implement this method. Will be called after

Also available in: Unified diff