Home | Trees | Index | Help |
|
---|
Package pyxmpp :: Module jid :: Class JID |
|
object
--+
|
JID
JID. :Ivariables: - `node`: node part of the JID - `domain`: domain part of the JID - `resource`: resource part of the JID JID objects are immutable. They are also cached for better performance.
Method Summary | |
---|---|
__cmp__(self,
other)
| |
__eq__(self,
other)
| |
__hash__(self)
| |
__ne__(self,
other)
| |
Create a new JID object or take one from the cache. (Static method) | |
__repr__(self)
| |
__setattr__(self,
name,
value)
| |
__str__(self)
| |
__unicode__(self)
| |
UTF-8 encoded JID representation. | |
Unicode string JID representation. | |
UTF-8 encoded JID representation. | |
Make bare JID made by removing resource from current `self`. | |
Initialize JID object from Unicode string. | |
Initialize `self.domain` :Parameters: - `s`: Unicode or UTF-8 domain part of the JID :raise JIDError: if the domain name is too long. | |
Initialize `self.node` :Parameters: - `s`: Node part of the JID :Types: - `s`: unicode :raise JIDError: if the node name is too long. | |
Initialize `self.resource` :Parameters: - `s`: Unicode or UTF-8 resource part of the JID :raise JIDError: if the resource name is too long. | |
Inherited from object | |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
helper for pickle | |
helper for pickle |
Class Variable Summary | |
---|---|
list |
__slots__ = ['node', 'domain', 'resource', '__weakref__'...
|
WeakValueDictionary |
cache = <WeakValueDictionary at -1216898068>
|
member_descriptor |
domain = <member 'domain' of 'JID' objects>
|
member_descriptor |
node = <member 'node' of 'JID' objects>
|
member_descriptor |
resource = <member 'resource' of 'JID' objects>
|
Instance Method Details |
---|
as_string(self)UTF-8 encoded JID representation. *Deprecated* Always use Unicode objects, or `as_utf8` if you really want. :return: UTF-8 encoded JID. |
as_unicode(self)Unicode string JID representation. :return: JID as Unicode string. |
as_utf8(self)UTF-8 encoded JID representation. :return: UTF-8 encoded JID. |
bare(self)Make bare JID made by removing resource from current `self`. :return: new JID object without resource part. |
__from_unicode(self, s, check=True)Initialize JID object from Unicode string. :Parameters: - `s`: the JID string - `check`: when `False` then the JID is not checked for specification compliance. |
__set_domain(self, s)Initialize `self.domain` :Parameters: - `s`: Unicode or UTF-8 domain part of the JID :raise JIDError: if the domain name is too long. |
__set_node(self, s)Initialize `self.node` :Parameters: - `s`: Node part of the JID :Types: - `s`: unicode :raise JIDError: if the node name is too long. :raise pyxmpp.xmppstringprep.StringprepError: if the node name fails Nodeprep preparation. |
__set_resource(self, s)Initialize `self.resource` :Parameters: - `s`: Unicode or UTF-8 resource part of the JID :raise JIDError: if the resource name is too long. :raise pyxmpp.xmppstringprep.StringprepError: if the node name fails Resourceprep preparation. |
Static Method Details |
---|
__new__(cls, node_or_jid=None, domain=None, resource=None, check=True)Create a new JID object or take one from the cache. :Parameters: - `node_or_jid`: node part of the JID, JID object to copy or Unicode representation of the JID. - `domain`: domain part of the JID - `resource`: resource part of the JID - `check`: if `False` then JID is not checked for specifiaction compliance.
|
Class Variable Details |
---|
__slots__
|
cache
|
domain
|
node
|
resource
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Wed May 31 22:36:59 2006 | http://epydoc.sf.net |