def getRoster(self):
        """ Requests roster from server if neccessary and returns self."""
        if not self.set: self.Request()
        while not self.set: self._owner.Process(10)
        return self
 Requests roster from server if neccessary and returns self.
chrome-cordova/gcmServer/xmpp/roster.py