def discoverItems(disp, jid, node=None):
 ' According to JEP-0030:\n        query MAY have node attribute\n        item: MUST HAVE jid attribute and MAY HAVE name, node, action attributes.\n        action attribute of item can be either of remove or update value.'
 ret = []
 for i in _discover(disp, NS_DISCO_ITEMS, jid, node):
  if ((i.getName() == 'agent') and i.getTag('name')):
   i.setAttr('name', i.getTagData('name'))
  ret.append(i.attrs)
 return ret

def discoverItems ( disp , jid , node = None ) : ret = [ ] for i in _discover ( disp , NS_DISCO_ITEMS , jid , node ) : if ( ( i . getName ( ) == 'agent' ) and i . getTag ( 'name' ) ) : i . setAttr ( 'name' , i . getTagData ( 'name' ) ) ret . append ( i . attrs ) return ret
query remote object about any items that it contains .