'Replace the stored items data for a JID/node combination.
The data parameter may provide:
items -- A set of items in tuple format.'

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

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