title: XMPP chat: accessing contacts' status messages with xmppPy's Roster
body: <p>I'm trying to access my google talk contacts' custom status messages with xmpppy. I'm made it this far:</p>
  
  <pre><code>import xmpp
  import sys
  
  userID   = 'myname@gmail.com' 
  password = 'mypassword'
  ressource = 'Script'
  
  jid  = xmpp.protocol.JID(userID)
  jabber  = xmpp.Client(jid.getDomain(), debug=[])
  
  connection = jabber.connect(('talk.google.com',5222))
  auth = jabber.auth(jid.getNode(), password, ressource)
  
  jabber.sendInitPresence(requestRoster=1)
  myroster = jabber.getRoster()
  </code></pre>
  
  <p>the roster object myroster now contains my contacts, but the custom status message is not included.</p>
  
  <pre><code>myroster.getStatus('oneofmyfriends@gmail.com')
  </code></pre>
  
  <p>returns None</p>
  
  <p>looking at the 'raw roster', I can see that the resources dictionary is empty</p>
  
  <pre><code>u'oneofmyfriends@googlemail.com': {'ask': None, 'resources': {}, 'name': u'Some Name', 'groups': [], 'subscription': u'both'}
  </code></pre>
  
  <p>The weird thing is that I have gotten this to work today, but I the code might have been slightly different, but I can't figure out what exactly I did differently...</p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <p>Cheers,</p>
  
  <p>Martin</p>