Revision 6a2dfeb4 ncclient/operations/lock.py

b/ncclient/operations/lock.py
16 16

  
17 17
from copy import deepcopy
18 18

  
19
from rpc import RPC
19
from rpc import RPC, RPCReply, RPCError
20

  
21
#class LockReply(RPCReply):
22
#
23
#    ERROR_CLS = LockDeniedError
24
#
25
#class LockDeniedError(RPCError):
26
#
27
#    def __new__(cls, err_dict):
28
#        if rpcerr['tag'] != 'lock-denied':
29
#            return RPCError(err_dict)
30
#        else:
31
#            return object.__new__(LockDeniedError)
32
#
33
#    def __init__(self, err_dict):
34
#        RPCError.__init__(self, err_dict)
20 35

  
21 36
class Lock(RPC):
22 37

  
......
32 47
        }
33 48
    }
34 49

  
50
    #REPLY_CLS = LockReply
51

  
35 52
    def request(self, target):
36 53
        """
37 54
        :arg target: see :ref:`source_target`

Also available in: Unified diff