Revision 6e571704
b/ncclient/transport/session.py | ||
---|---|---|
208 | 208 |
@staticmethod |
209 | 209 |
def build(capabilities): |
210 | 210 |
"Given a list of capability URI's returns <hello> message XML string" |
211 |
hello = new_ele("hello", xmlns=BASE_NS_1_0)
|
|
211 |
hello = new_ele("hello") |
|
212 | 212 |
caps = sub_ele(hello, "capabilities") |
213 | 213 |
def fun(uri): sub_ele(caps, "capability").text = uri |
214 | 214 |
map(fun, capabilities) |
Also available in: Unified diff