Coverage for slidge/slixfix/xep_0490/stanza.py: 100%
12 statements
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-07 05:11 +0000
« prev ^ index » next coverage.py v7.6.1, created at 2024-11-07 05:11 +0000
1from slixmpp import register_stanza_plugin
2from slixmpp.plugins.xep_0060.stanza import Item
3from slixmpp.plugins.xep_0359.stanza import StanzaID
4from slixmpp.xmlstream import ElementBase
6NS = "urn:xmpp:mds:displayed:0"
9class Displayed(ElementBase):
10 namespace = NS
11 name = "displayed"
12 plugin_attrib = "displayed"
15def register_plugin():
16 register_stanza_plugin(Displayed, StanzaID)
17 register_stanza_plugin(Item, Displayed)