78 |
78 |
79 function command_mt:_process_response(result) |
79 function command_mt:_process_response(result) |
80 if result.type == "error" then |
80 if result.type == "error" then |
81 self.status = "canceled"; |
81 self.status = "canceled"; |
82 self.callback(self, {}); |
82 self.callback(self, {}); |
|
83 return; |
83 end |
84 end |
84 local command = result:get_child("command", xmlns_commands); |
85 local command = result:get_child("command", xmlns_commands); |
85 self.status = command.attr.status; |
86 self.status = command.attr.status; |
86 self.sessionid = command.attr.sessionid; |
87 self.sessionid = command.attr.sessionid; |
87 self.form = command:get_child("x", xmlns_data); |
88 self.form = command:get_child("x", xmlns_data); |