'Serialise JID into string.'

def __str__(self, wresource=1):

    if self.node:
        jid = ((self.node + '@') + self.domain)
    else:
        jid = self.domain
    if (wresource and self.resource):
        return ((jid + '/') + self.resource)
    return jid
