'Send a subscription request to the JID.'

def subscribe(self):

    p = self.xmpp.Presence()
    p['to'] = self.jid
    p['type'] = 'subscribe'
    if self.xmpp.is_component:
        p['from'] = self.owner
    self['pending_out'] = True
    self.save()
    p.send()
