+ def sendVCardRequest(self, to, fro):
+ """ Requests the the vCard of 'to'
+ Returns a Deferred which fires when the vCard has been received.
+ First argument an Element object of the vCard
+ """
+ el = Element((None, "iq"))
+ el.attributes["to"] = to
+ el.attributes["from"] = fro
+ el.attributes["type"] = "get"
+ el.attributes["id"] = self.pytrans.makeMessageID()
+ vCard = el.addElement("vCard")
+ vCard.attributes["xmlns"] = "vcard-temp"
+ return self.pytrans.discovery.sendIq(el)
+