Revision e52e8478 ncclient/operations/rpc.py
b/ncclient/operations/rpc.py | ||
---|---|---|
37 | 37 |
def __repr__(self): |
38 | 38 |
return self._raw |
39 | 39 |
|
40 |
def _parsing_hook(self, root): |
|
41 |
pass |
|
42 |
|
|
40 | 43 |
def parse(self): |
41 | 44 |
if self._parsed: |
42 | 45 |
return |
... | ... | |
225 | 228 |
self._reply = None |
226 | 229 |
self._reply_event = Event() |
227 | 230 |
|
228 |
def _build(self, opspec, encoding='utf-8'):
|
|
231 |
def _build(self, opspec): |
|
229 | 232 |
"TODO: docstring" |
230 | 233 |
spec = { |
231 | 234 |
'tag': content.qualify('rpc'), |
232 | 235 |
'attributes': {'message-id': self._id}, |
233 | 236 |
'subtree': opspec |
234 | 237 |
} |
235 |
return content.dtree2xml(encoding)
|
|
238 |
return content.dtree2xml(spec)
|
|
236 | 239 |
|
237 | 240 |
def _request(self, op): |
238 | 241 |
req = self._build(op) |
Also available in: Unified diff