'This is the main method that you will use in this class.
It is used to register supplied DISCO handler (or dictionary with static info)
as handler of some disco tree branch.
If you do not specify the node this handler will be used for all queried nodes.
If you do not specify the jid this handler will be used for all queried JIDs.
Usage:
cl.Browser.setDiscoHandler(someDict,node,jid)
or
cl.Browser.setDiscoHandler(someDISCOHandler,node,jid)
where
someDict={
\'items\':[
{\'jid\':\'jid1\',\'action\':\'action1\',\'node\':\'node1\',\'name\':\'name1\'},
{\'jid\':\'jid2\',\'action\':\'action2\',\'node\':\'node2\',\'name\':\'name2\'},
{\'jid\':\'jid3\',\'node\':\'node3\',\'name\':\'name3\'},
{\'jid\':\'jid4\',\'node\':\'node4\'}
\'info\' :{
\'ids\':[
{\'category\':\'category1\',\'type\':\'type1\',\'name\':\'name1\'},
{\'category\':\'category2\',\'type\':\'type2\',\'name\':\'name2\'},
{\'category\':\'category3\',\'type\':\'type3\',\'name\':\'name3\'},
\'features\':[\'feature1\',\'feature2\',\'feature3\',\'feature4\'],
\'xdata\':DataForm
and/or
def someDISCOHandler(session,request,TYR):
# if TYR==\'items\':  # returns items list of the same format as shown above
# elif TYR==\'info\': # returns info dictionary of the same format as shown above
# else: # this case is impossible for now.'

def setDiscoHandler(self, handler, node='', jid=''):

    self.DEBUG(('Registering    handler    %s    for    "%s"    node->%s' % (handler, jid, node)), 'info')
    (node, key) = self._traversePath(node, jid, 1)
    node[key] = handler
