diff --git a/src/jcl/jabber/component.py b/src/jcl/jabber/component.py index 94ed74c..30b9ade 100644 --- a/src/jcl/jabber/component.py +++ b/src/jcl/jabber/component.py @@ -692,6 +692,7 @@ class AccountManager(object): def account_set_register(self, name, from_jid, lang_class, \ x_data, info_query): """Update account""" + self.__logger.debug("Updating account " + name) bare_from_jid = from_jid.bare() self.db_connect() accounts = Account.select(\ diff --git a/src/jcl/lang.py b/src/jcl/lang.py index 7a6d04e..ec153f7 100644 --- a/src/jcl/lang.py +++ b/src/jcl/lang.py @@ -88,6 +88,11 @@ class Lang: field_dnd_action_0 = field_action_0 field_offline_action_0 = field_action_0 + update_account_message_subject = u"Updated account '%s'" + update_account_message_body = u"Updated account" + check_error_subject = u"Error while checking emails." + check_error_body = u"An error appears while checking emails:\n\t%s" + # account_login = u"Login" # account_password = u"Password" # account_password_store = u"Store password on Jabber server?" @@ -110,10 +115,6 @@ class Lang: # update_title = u"Jabber mail connection update" # update_instructions = u"Modifying connection '%s'" # connection_label = u"%s connection '%s'" -# update_account_message_subject = u"Updated account '%s'" -# update_account_message_body = u"Updated account" - check_error_subject = u"Error while checking emails." - check_error_body = u"An error appears while checking emails:\n\t%s" # new_mail_subject = u"New email from %s" # new_digest_subject = u"%i new email(s)" diff --git a/src/jcl/model/account.py b/src/jcl/model/account.py index 7f5acf1..56e20a1 100644 --- a/src/jcl/model/account.py +++ b/src/jcl/model/account.py @@ -135,11 +135,11 @@ class Account(InheritableSQLObject): def get_update_message_subject(self, lang_class): """Return localized message subject for existing account""" - return lang_class.new_account_message_subject % (self.name) + return lang_class.update_account_message_subject % (self.name) def get_update_message_body(self, lang_class): """Return localized message body for existing account""" - return lang_class.new_account_message_body + return lang_class.update_account_message_body class PresenceAccount(Account): DO_NOTHING = 0