diff options
author | Lance Stout <lancestout@gmail.com> | 2010-10-01 11:15:51 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-10-01 11:15:51 -0400 |
commit | fcdd57ce543b4797114868c1af8209e8cc92d0dd (patch) | |
tree | adf2b169d400034e69085fddc41d7879e5037b8b /sleekxmpp/basexmpp.py | |
parent | 5522443e0e122093080032037a783ab3d2718d3f (diff) | |
download | slixmpp-fcdd57ce543b4797114868c1af8209e8cc92d0dd.tar.gz slixmpp-fcdd57ce543b4797114868c1af8209e8cc92d0dd.tar.bz2 slixmpp-fcdd57ce543b4797114868c1af8209e8cc92d0dd.tar.xz slixmpp-fcdd57ce543b4797114868c1af8209e8cc92d0dd.zip |
Moved add_handler, send, and sendXML to XMLStream.
Diffstat (limited to 'sleekxmpp/basexmpp.py')
-rw-r--r-- | sleekxmpp/basexmpp.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sleekxmpp/basexmpp.py b/sleekxmpp/basexmpp.py index a522f822..51607d78 100644 --- a/sleekxmpp/basexmpp.py +++ b/sleekxmpp/basexmpp.py @@ -114,30 +114,6 @@ class basexmpp(object): for plugin in self.plugin: self.plugin[plugin].post_init() - def add_handler(self, mask, pointer, name=None, disposable=False, threaded=False, filter=False, instream=False): - # threaded is no longer needed, but leaving it for backwards compatibility for now - if name is None: - name = 'add_handler_%s' % self.getNewId() - self.registerHandler(XMLCallback(name, MatchXMLMask(mask), pointer, once=disposable, instream=instream)) - - def sendXML(self, data, mask=None, timeout=10): - return self.send(tostring(data), mask, timeout) - - def send(self, data, mask=None, timeout=10): - #logging.warning("Deprecated send used for \"%s\"" % (data,)) - #if not type(data) == type(''): - # data = self.tostring(data) - if hasattr(mask, 'xml'): - mask = mask.xml - data = str(data) - if mask is not None: - logging.warning("Use of send mask waiters is deprecated") - waitfor = Waiter('SendWait_%s' % self.getNewId(), MatchXMLMask(mask)) - self.registerHandler(waitfor) - self.sendRaw(data) - if mask is not None: - return waitfor.wait(timeout) - def makeIq(self, id=0, ifrom=None): return self.Iq().setStanzaValues({'id': str(id), 'from': ifrom}) |