Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-01-26 | Upgraded how subitem works. | Lance Stout | |
May now use register_stanza_plugin(Foo, Bar, iterable=True) to add to the set of stanza classes used for iterable substanzas. It is no longer necessary to manually specify the contents of subitem if the new method is used. | |||
2011-01-23 | My hunch is that these should also be updated. | Stefan de Konink | |
2011-01-19 | Make extending stanza objects nicer. | Lance Stout | |
A stanza object may add is_extension = True to its class definition to provide a single new interface to a parent stanza. For example: import sleekxmpp from sleekxmpp import Iq from sleekxmpp.xmlstream import ElementBase, register_stanza_plugin, ET class Foo(ElementBase): """ Test adding just an attribute to a parent stanza. Adding subelements works as expected. """ is_extension = True interfaces = set(('foo',)) plugin_attrib = 'foo' def setup(self, xml): # Don't include an XML element in the parent stanza # since we're adding just an attribute. # If adding a regular subelement, no need to do this. self.xml = ET.Element('') def set_foo(self, val): self.parent()._set_attr('foo', val) def get_foo(self): return self.parent()._get_attr('foo') def del_foo(self): self.parent()._del_attr('foo') register_stanza_plugin(Iq, Foo) i1 = Iq() i2 = Iq(xml=ET.fromstring("<iq xmlns='jabber:client' foo='bar' />")) >>> i1['foo'] = '3' >>> i1 '3' >>> i1 '<iq id="0" foo="3" />' >>> i2 '<iq id="0" foo="bar" />' >>> i2['foo'] 'bar' >>> del i2['foo'] >>> i2 '<iq id="0" />' | |||
2011-01-19 | Fix tests for Nick stanza. | Lance Stout | |
2011-01-19 | Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop | Lance Stout | |
2011-01-19 | Fix thirdparty imports for Python3 | Lance Stout | |
2011-01-20 | Do not traceback when DNS resolution time out. | Florent Le Coz | |
Just log that the resolution timed out, and fall back to the hostname from the JID in this case | |||
2011-01-19 | Fix disco add_item. | Lance Stout | |
If no JID is specified for the item, use xmpp.boundjid.full. | |||
2011-01-19 | Fix namespace for Nick stanza. | Lance Stout | |
2011-01-19 | Fix error in disco add_item. | Lance Stout | |
None values were not being treated properly. | |||
2011-01-16 | Add StreamError stanza and a stream_error event. | Lance Stout | |
Note that the stream may automatically attempt to reconnect when a stream error is received. | |||
2011-01-16 | Raise the event 'socket_error' when a socket error occurs. | Lance Stout | |
Will be most useful for debugging and responding to failed connection attempts. | |||
2011-01-15 | Make it easier to import OrderedDict | Lance Stout | |
2011-01-15 | Fix how disco plugin looks up info and items for clients. | Lance Stout | |
2011-01-14 | Add a note for debug statement when running scheduled events. | Lance Stout | |
Fixes the intermittent DEBUG ((),) messages that give no explanation. Will now show as: DEBUG Scheduled event: ((), ) | |||
2011-01-13 | Fix bug in JID class. Attribute .jid now works properly. | Lance Stout | |
2011-01-13 | Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop | Lance Stout | |
2011-01-13 | Fixed typo. | Dann Martens | |
2011-01-13 | Fixed 'nil' bug in unmarshalling. | Dann Martens | |
2011-01-13 | Updated setup.py to include XEP-0009. | Dann Martens | |
2011-01-13 | Added examples. | Dann Martens | |
2011-01-13 | Removed binding XML namespace experiments. | Dann Martens | |
2011-01-13 | Introduced new XEP-0009 into develop. | Dann Martens | |
2011-01-12 | Fix setup.py and old_0004.py typo bugs. | Lance Stout | |
2011-01-12 | Fix ordering error in Iq._set_stanza_values. | Lance Stout | |
If iq['query'] was set before a plugin that used the query element was set, then the query element was duplicated. | |||
2011-01-11 | Update setup.py with latest plugin packages. | Lance Stout | |
2011-01-11 | added plugin for xep-0249 | Te-je Rodgers | |
2011-01-09 | Need to run post_init properly. | Lance Stout | |
2011-01-08 | Update the XEP-0092 plugin to the new style. | Lance Stout | |
2011-01-09 | Allow XEP 0092 to send os information | Florent Le Coz | |
Doesn't send these information by default, only if provided in the config dict (as the 'os' key) | |||
2011-01-08 | Add support for XEP-0059 to XEP-0030 plugin. | Lance Stout | |
2011-01-08 | Added new XEP-0059 plugin. | Lance Stout | |
Contributed by Erik Reuterborg Larsson (who). | |||
2011-01-07 | Add reattempt to ClientXMPP.connect | Lance Stout | |
2011-01-05 | Allow JID objects to be compared with strings. | Lance Stout | |
Two JIDs match if they have the same full JID value. | |||
2011-01-04 | More clarification in docs for XEP-0030 plugin. | Lance Stout | |
2011-01-04 | Clarify docs for disco.get_info. | Lance Stout | |
2010-12-29 | Keep things lined up. | Lance Stout | |
2010-12-28 | Fixed typo in comment. | Andrzej Bieniek | |
2010-12-28 | Fix some typos. | Lance Stout | |
2010-12-28 | Make the new XEP-30 plugin retain older API signatures. | Lance Stout | |
2010-12-21 | Added ordereddict implementation to thirdparty. | Lance Stout | |
See http://pypi.python.org/pypi/ordereddict and http://code.activestate.com/recipes/576693/. | |||
2010-12-21 | More documentation for XEP-0030 plugin. | Lance Stout | |
2010-12-17 | Make tests pass for catching exceptions. | Lance Stout | |
May now use sys.excepthook to catch exceptions from threaded handlers. | |||
2010-12-17 | Merge branch 'develop' of github.com:fritzy/SleekXMPP into develop | Lance Stout | |
2010-12-17 | RootStanza raises unexpected exceptions | Florent Le Coz | |
We now raise the unexpected exceptions instead of sending them on the network. - avoids flood (sending a traceback on a MUC, for example…) and maybe some security issues. - lets you handle the traceback (catch it to handle it properly, or with except_hook, etc) - an exception cannot be raised without you knowing | |||
2010-12-16 | Almost done with xep-30; added more docs. | Lance Stout | |
2010-12-16 | Use daemon threads instead of signals. | Lance Stout | |
Daemonized threads exit once the main program has quit, and the only threads left running are all daemon threads. Should fix hanging clients while not trampling over anyone else's signal handlers. | |||
2010-12-16 | Updated echo_client example to mention SSL options. | Lance Stout | |
2010-12-16 | Added the disco browser as an example. | Lance Stout | |
2010-12-16 | Need to update setup.py with new XEP-0030 packages. | Lance Stout | |
Will need to remember to update setup.py when transitioning plugins to the new layout. |