mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
eff3330e75
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) |
||
---|---|---|
.. | ||
handler | ||
matcher | ||
__init__.py | ||
filesocket.py | ||
jid.py | ||
scheduler.py | ||
stanzabase.py | ||
test.py | ||
test.xml | ||
testclient.py | ||
tostring.py | ||
xmlstream.py |