def __init__(self, jid=None, node='', domain='', resource=''): if jid: self._node, self._domain, self._resource = parse_jid(jid) else: self._node = node self._domain = domain self._resource = resource
def __init__(self, jid=None, node='', domain='', resource=''): if jid: self.node, self.domain, self.resource = parse_jid(jid) else: self.node = node self.domain = domain self.resource = resource
def domain(self): return parse_jid(self.jid)[1]
def resource(self): return parse_jid(self.jid)[2]
def node(self): return parse_jid(self.jid)[0]
def __init__(self, jid=None, node='', domain='', resource=''): if jid: node, domain, resource = parse_jid(jid) JID.__init__(self, node=node, domain=domain, resource=resource)