diff options
author | Lance Stout <lancestout@gmail.com> | 2011-12-12 22:17:07 -0800 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-12-12 22:17:07 -0800 |
commit | eff3330e754cfbb496d6ba761d0a821375f575c8 (patch) | |
tree | 0f141e4fa1a2fdfc5f3c7bb9621e1fff235dcecc /sleekxmpp/plugins/xep_0078/__init__.py | |
parent | fc8a13df5a76176eb843ee0c4c4d4da462d3ab3b (diff) | |
download | slixmpp-eff3330e754cfbb496d6ba761d0a821375f575c8.tar.gz slixmpp-eff3330e754cfbb496d6ba761d0a821375f575c8.tar.bz2 slixmpp-eff3330e754cfbb496d6ba761d0a821375f575c8.tar.xz slixmpp-eff3330e754cfbb496d6ba761d0a821375f575c8.zip |
Add support for incoming/outgoing filters.
A filter accepts and returns a stanza, but potentially modified.
To prevent sending/receiving a stanza, a filter may return None.
Incoming:
self.add_filter('in', in_filter)
Outgoing:
self.add_filter('out', out_filter)
Filters are applied in the order thay are added. However, you may
add an order parameter, which is the place in the list to insert the
filter:
self.add_filter('in', in_filter, order=0)
Diffstat (limited to 'sleekxmpp/plugins/xep_0078/__init__.py')
0 files changed, 0 insertions, 0 deletions