2013-04-08 16:52:35 +00:00
|
|
|
Event Index
|
|
|
|
===========
|
|
|
|
|
2014-12-04 14:40:43 +00:00
|
|
|
The following events are poezio-only events, for Slixmpp events, check out
|
|
|
|
`their index <http://slixmpp.com/event_index.html>`_.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
.. glossary::
|
|
|
|
:sorted:
|
|
|
|
|
2016-03-08 21:53:13 +00:00
|
|
|
highlight
|
|
|
|
- **message:** :py:class:`~slixmpp.Message` that was received
|
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source of the event
|
|
|
|
|
2014-04-30 18:37:18 +00:00
|
|
|
tab_change
|
|
|
|
- **old_tab_nb:** :py:class:`int` Old current tab number.
|
|
|
|
- **new_tab_nb:** :py:class:`int` New current tab number.
|
|
|
|
|
|
|
|
Triggered whenever the user switches between tabs.
|
|
|
|
|
2013-04-08 16:52:35 +00:00
|
|
|
muc_say
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` that will be sent
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
|
|
|
Triggered whenever the user sends a message to a :py:class:`~tabs.MucTab`.
|
|
|
|
|
|
|
|
muc_say_after
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` that will be sent
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
|
|
|
Same thing than :term:`muc_say`, but after XHTML generation of the body, if needed.
|
|
|
|
This means you must not insert any colors in the body in the handler, since
|
|
|
|
it may lead to send invalid XML. This hook is less safe than ``muc_say`` and
|
|
|
|
you should probably not need it.
|
|
|
|
|
|
|
|
private_say
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` that will be sent
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.PrivateTab` source
|
|
|
|
|
|
|
|
Triggered whenever the user sends a message to a :py:class:`~tabs.PrivateTab`.
|
|
|
|
|
|
|
|
private_say_after
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` that will be sent
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.PrivateTab` source
|
|
|
|
|
|
|
|
Same thing than :term:`private_say`, but after XHTML generation of the body, if needed.
|
|
|
|
This means you must not insert any colors in the body in the handler, since
|
|
|
|
it may lead to send invalid XML. This hook is less safe than :term:`private_say` and
|
|
|
|
you should probably not need it.
|
|
|
|
|
|
|
|
conversation_say
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` that will be sent
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.ConversationTab` source
|
|
|
|
|
|
|
|
Triggered whenever the user sends a message to a :py:class:`~tabs.ConversationTab`.
|
|
|
|
|
|
|
|
conversation_say_after:
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` that will be sent
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.ConversationTab` source
|
|
|
|
|
2014-10-13 17:03:47 +00:00
|
|
|
Same thing than :term:`conversation_say`, but after XHTML generation
|
|
|
|
of the body, if needed. This means you must not insert any colors
|
|
|
|
in the body in the handler, since it may lead to send
|
|
|
|
invalid XML. This hook is less safe than :term:`conversation_say`
|
|
|
|
and you should probably not need it.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
muc_msg
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
|
|
|
Triggered when a message is received in a :py:class:`~tabs.MucTab`.
|
|
|
|
|
|
|
|
private_msg
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.PrivateTab` source
|
|
|
|
|
|
|
|
Triggered when a message is received in a :py:class:`~tabs.PrivateTab`.
|
|
|
|
|
|
|
|
conversation_msg
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.ConversationTab` source
|
|
|
|
|
|
|
|
Triggered when a message is received in a :py:class:`~tabs.ConversationTab`.
|
|
|
|
|
|
|
|
conversation_chatstate
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.ConversationTab` source
|
|
|
|
|
|
|
|
Triggered when a chatstate is received in a :py:class:`~tabs.ConversationTab`.
|
|
|
|
|
|
|
|
muc_chatstate
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
|
|
|
Triggered when a chatstate is received in a :py:class:`~tabs.MucTab`.
|
|
|
|
|
|
|
|
private_chatstate
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message:** :py:class:`~slixmpp.Message` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`PrivateTab <tabs.PrivateTab>` source
|
|
|
|
|
|
|
|
Triggered when a chatstate is received in a :py:class:`~tabs.PrivateTab`.
|
|
|
|
|
|
|
|
normal_presence
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~slixmpp.Presence` received
|
|
|
|
- **resource:** :py:class:`Resource <str>` that emitted the :py:class:`~slixmpp.Presence`
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
Triggered when a presence is received from a contact.
|
|
|
|
|
|
|
|
muc_presence
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~slixmpp.Presence` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
2014-10-13 17:03:47 +00:00
|
|
|
Triggered when a presence is received from someone in a
|
|
|
|
:py:class:`~tabs.MucTab`.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
2013-05-01 16:44:14 +00:00
|
|
|
joining_muc
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~~slixmpp.Presence` to be sent
|
2013-05-01 16:44:14 +00:00
|
|
|
|
2014-10-13 17:03:47 +00:00
|
|
|
Triggered when joining a MUC. The presence can thus be modified
|
|
|
|
before being sent.
|
2013-05-01 16:44:14 +00:00
|
|
|
|
2014-10-13 17:01:22 +00:00
|
|
|
changing_nick
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~~slixmpp.Presence` to be sent
|
2014-10-13 17:01:22 +00:00
|
|
|
|
|
|
|
Triggered when the user changes his/her nickname on a MUC. The
|
|
|
|
presence can thus be modified before being sent.
|
|
|
|
|
2013-04-08 16:52:35 +00:00
|
|
|
send_normal_presence
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~slixmpp.Presence` sent
|
2013-04-08 16:52:35 +00:00
|
|
|
|
2014-12-04 14:40:43 +00:00
|
|
|
Triggered when poezio sends a new :py:class:`~slixmpp.Presence`
|
2014-10-13 17:03:47 +00:00
|
|
|
stanza. The presence can thus be modified before being sent.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
muc_join
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~slixmpp.Presence` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
2016-03-08 21:53:13 +00:00
|
|
|
Triggered when a user joins a :py:class:`~tabs.MucTab`
|
2013-04-08 16:52:35 +00:00
|
|
|
|
|
|
|
muc_ban
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~slixmpp.Presence` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
2016-03-08 21:53:13 +00:00
|
|
|
Triggered when a user from a :py:class:`~tabs.MucTab`
|
2013-04-08 16:52:35 +00:00
|
|
|
gets banned.
|
|
|
|
|
2016-03-08 21:53:13 +00:00
|
|
|
muc_kick
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~slixmpp.Presence` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
2016-03-08 21:53:13 +00:00
|
|
|
Triggered when a user from a :py:class:`~tabs.MucTab`
|
2013-04-08 16:52:35 +00:00
|
|
|
gets kicked.
|
|
|
|
|
|
|
|
muc_nickchange
|
2014-12-04 14:40:43 +00:00
|
|
|
- **presence:** :py:class:`~slixmpp.Presence` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.MucTab` source
|
|
|
|
|
2016-03-08 21:53:13 +00:00
|
|
|
Triggered when a user in a :py:class:`~tabs.MucTab` changes
|
2013-04-08 16:52:35 +00:00
|
|
|
his nickname.
|
|
|
|
|
|
|
|
ignored_private
|
2014-12-04 14:40:43 +00:00
|
|
|
- **message**:py:class:`~slixmpp.Message` received
|
2013-04-08 16:52:35 +00:00
|
|
|
- **tab:** :py:class:`~tabs.PrivateTab` source
|
|
|
|
|
2014-10-13 17:03:47 +00:00
|
|
|
Triggered when a private message (that goes in a
|
|
|
|
:py:class:`~tabs.PrivateTab`) is ignored automatically by poezio.
|
2013-04-08 16:52:35 +00:00
|
|
|
|
2014-10-13 17:03:47 +00:00
|
|
|
**tab** is always ``None``, except when a tab has already been
|
|
|
|
opened.
|