Mercurial > libervia-backend
changeset 672:712e3782af12
plugin misc_account: added method getNewAccountDomain
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 07 Nov 2013 17:01:40 +0100 |
parents | 4e691a231763 |
children | 903c4749de15 |
files | src/plugins/plugin_misc_account.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py Thu Nov 07 16:58:20 2013 +0100 +++ b/src/plugins/plugin_misc_account.py Thu Nov 07 17:01:40 2013 +0100 @@ -87,6 +87,7 @@ info(_(u"Plugin Account initialization")) self.host = host host.bridge.addMethod("registerSatAccount", ".plugin", in_sign='sss', out_sign='', method=self._registerAccount, async=True) + host.bridge.addMethod("getNewAccountDomain", ".plugin", in_sign='', out_sign='s', method=self._getNewAccountDomain, async=False) if not self._prosody_path: paths = which(_PROSODYCTL) if not paths: @@ -185,3 +186,8 @@ d = sendmail(_email_host, _email_from, _REG_ADMIN_EMAIL, msg.as_string()) d.addCallbacks(email_ok, email_ko) + + def _getNewAccountDomain(self): + """@return: the domain that will be set to new account""" + return _NEW_ACCOUNT_DOMAIN +