Created
May 28, 2010 15:05
-
-
Save legastero/417270 to your computer and use it in GitHub Desktop.
Registering a stream event handler.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # If self.xmpp is a SleekXMPP object and Task is a stanza object class | |
| # See the wiki page Stanza Objects for details on Task | |
| self.xmpp.registerHandler( | |
| Callback('Example Handler', | |
| MatchXPath('{%s}iq/{%s}task' % (self.xmpp.default_ns, Task.namespace), | |
| self.handle_task)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment