Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0277.py @ 588:beaf6bec2fcd
Remove every old-style class.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:35 +0100 |
parents | 952322b1d490 |
children | e629371a28d3 |
comparison
equal
deleted
inserted
replaced
587:952322b1d490 | 588:beaf6bec2fcd |
---|---|
51 } | 51 } |
52 | 52 |
53 class NodeAccessChangeException(Exception): | 53 class NodeAccessChangeException(Exception): |
54 pass | 54 pass |
55 | 55 |
56 class XEP_0277(): | 56 class XEP_0277(object): |
57 | 57 |
58 def __init__(self, host): | 58 def __init__(self, host): |
59 info(_("Microblogging plugin initialization")) | 59 info(_("Microblogging plugin initialization")) |
60 self.host = host | 60 self.host = host |
61 self.host.plugins["XEP-0163"].addPEPEvent("MICROBLOG", NS_MICROBLOG, self.microblogCB, self.sendMicroblog) | 61 self.host.plugins["XEP-0163"].addPEPEvent("MICROBLOG", NS_MICROBLOG, self.microblogCB, self.sendMicroblog) |