From d565e4be2084eee14b93c753765b82b5d0f00cd1 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 3 Feb 2012 16:08:27 +0100 Subject: [PATCH] Fix XEP-0184 imports --- sleekxmpp/plugins/xep_0184/__init__.py | 2 +- sleekxmpp/plugins/xep_0184/reciept.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sleekxmpp/plugins/xep_0184/__init__.py b/sleekxmpp/plugins/xep_0184/__init__.py index 15670562..e401eb76 100644 --- a/sleekxmpp/plugins/xep_0184/__init__.py +++ b/sleekxmpp/plugins/xep_0184/__init__.py @@ -6,5 +6,5 @@ See the file LICENSE for copying permission. """ -from sleekxmpp.plugins.xep_0184.reciept import xep_0184 from sleekxmpp.plugins.xep_0184.stanza import Request, Received +from sleekxmpp.plugins.xep_0184.reciept import xep_0184 diff --git a/sleekxmpp/plugins/xep_0184/reciept.py b/sleekxmpp/plugins/xep_0184/reciept.py index 36105fd4..0cbc833d 100644 --- a/sleekxmpp/plugins/xep_0184/reciept.py +++ b/sleekxmpp/plugins/xep_0184/reciept.py @@ -9,7 +9,7 @@ from sleekxmpp.stanza import Message from sleekxmpp.xmlstream import register_stanza_plugin from sleekxmpp.plugins.base import base_plugin -from stanza import Request, Received +from sleekxmpp.plugins.xep_0184 import stanza, Request, Received class xep_0184(base_plugin): @@ -20,6 +20,8 @@ class xep_0184(base_plugin): def plugin_init(self): self.xep = '0184' self.description = 'Message Delivery Receipts' + self.stanza = stanza + register_stanza_plugin(Message, Request) register_stanza_plugin(Message, Received)