Mercurial > libervia-backend
diff sat.tac @ 30:d6b613764dd7
new plugin for xep 0077 (In-Band registration): first draft
- wix: register in gateways manager now call the in-band registration process
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 08 Dec 2009 04:19:41 +0100 |
parents | 53e921c8a357 |
children | b9bb5d8e0cc7 |
line wrap: on
line diff
--- a/sat.tac Tue Dec 08 02:31:35 2009 +0100 +++ b/sat.tac Tue Dec 08 04:19:41 2009 +0100 @@ -229,11 +229,11 @@ self.host.bridge.actionResult(answer_type, self.answer_id, answer_data) self.xmlstream.sendFooter() - def registrationFailure(self, error): - info ("Registration failure: %s" % str(error.value)) + def registrationFailure(self, failure): + info ("Registration failure: %s" % str(failure.value)) answer_type = "ERROR" answer_data = {} - if error.value.condition == 'conflict': + if failure.value.condition == 'conflict': answer_data['reason'] = 'conflict' answer_data={"message":"Username already exists, please choose an other one"} else: