'Set the entire info stanza for a JID/node at once.
The data parameter is a disco#info substanza.'

def set_info(self, jid, node, ifrom, data):

    with self.lock:
        self.add_node(jid, node)
        self.get_node(jid, node)['info'] = data
