Mercurial > libervia-backend
comparison src/core/sat_main.py @ 999:c37a24922f27
plugin XEP_0033: fixes the server part and the tests
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 11 Apr 2014 11:02:42 +0200 |
parents | 301b342c697a |
children | a7d33c7a8277 |
comparison
equal
deleted
inserted
replaced
998:f5761534e0f3 | 999:c37a24922f27 |
---|---|
56 class MessageSentAndStored(Exception): | 56 class MessageSentAndStored(Exception): |
57 """ Exception to raise if the message has been already sent and stored in the | 57 """ Exception to raise if the message has been already sent and stored in the |
58 history by the trigger, so the rest of the process should be stopped. This | 58 history by the trigger, so the rest of the process should be stopped. This |
59 should normally be raised by the trigger with the minimal priority """ | 59 should normally be raised by the trigger with the minimal priority """ |
60 def __init__(self, reason, mess_data): | 60 def __init__(self, reason, mess_data): |
61 Exception(reason) | 61 Exception.__init__(self, reason) |
62 self.mess_data = mess_data # added for testing purpose | 62 self.mess_data = mess_data # added for testing purpose |
63 | 63 |
64 | 64 |
65 class AbortSendMessage(Exception): | 65 class AbortSendMessage(Exception): |
66 """ Exception to raise if sending the message should be aborted. This can be | 66 """ Exception to raise if sending the message should be aborted. This can be |