comparison src/plugins/plugin_misc_account.py @ 2177:09cfec4d8d19

plugin XEP-0077: added inBandAccountNew, inBandUnregister and inBandPasswordChange bridge methods
author Goffi <goffi@goffi.org>
date Thu, 09 Mar 2017 23:07:38 +0100
parents 61128d260eef
children 968b0d13bcc7
comparison
equal deleted inserted replaced
2176:61128d260eef 2177:09cfec4d8d19
480 def errback(failure): 480 def errback(failure):
481 error_ui = xml_tools.XMLUI("popup", title=D_("Error")) 481 error_ui = xml_tools.XMLUI("popup", title=D_("Error"))
482 error_ui.addText(D_("Your XMPP account could not be deleted: %s") % failure.getErrorMessage()) 482 error_ui.addText(D_("Your XMPP account could not be deleted: %s") % failure.getErrorMessage())
483 return defer.succeed({'xmlui': error_ui.toXml()}) 483 return defer.succeed({'xmlui': error_ui.toXml()})
484 484
485 d = self.host.plugins['XEP-0077'].removeRegistration(client, jid.JID(client.jid.host)) 485 d = self.host.plugins['XEP-0077'].unregister(client, jid.JID(client.jid.host))
486 d.addCallbacks(userDeleted, errback) 486 d.addCallbacks(userDeleted, errback)
487 return d 487 return d
488 488
489 def __deleteBlogPosts(self, posts, comments, profile): 489 def __deleteBlogPosts(self, posts, comments, profile):
490 """Ask for a confirmation before deleting the blog posts 490 """Ask for a confirmation before deleting the blog posts