Change message when updating account
darcs-hash:20070515161632-86b55-64de8853e45e0dbcbc6f0f9d4e731a4f5848a134.gz
This commit is contained in:
@@ -692,6 +692,7 @@ class AccountManager(object):
|
|||||||
def account_set_register(self, name, from_jid, lang_class, \
|
def account_set_register(self, name, from_jid, lang_class, \
|
||||||
x_data, info_query):
|
x_data, info_query):
|
||||||
"""Update account"""
|
"""Update account"""
|
||||||
|
self.__logger.debug("Updating account " + name)
|
||||||
bare_from_jid = from_jid.bare()
|
bare_from_jid = from_jid.bare()
|
||||||
self.db_connect()
|
self.db_connect()
|
||||||
accounts = Account.select(\
|
accounts = Account.select(\
|
||||||
|
|||||||
@@ -88,6 +88,11 @@ class Lang:
|
|||||||
field_dnd_action_0 = field_action_0
|
field_dnd_action_0 = field_action_0
|
||||||
field_offline_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_login = u"Login"
|
||||||
# account_password = u"Password"
|
# account_password = u"Password"
|
||||||
# account_password_store = u"Store password on Jabber server?"
|
# account_password_store = u"Store password on Jabber server?"
|
||||||
@@ -110,10 +115,6 @@ class Lang:
|
|||||||
# update_title = u"Jabber mail connection update"
|
# update_title = u"Jabber mail connection update"
|
||||||
# update_instructions = u"Modifying connection '%s'"
|
# update_instructions = u"Modifying connection '%s'"
|
||||||
# connection_label = u"%s 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_mail_subject = u"New email from %s"
|
||||||
# new_digest_subject = u"%i new email(s)"
|
# new_digest_subject = u"%i new email(s)"
|
||||||
|
|
||||||
|
|||||||
@@ -135,11 +135,11 @@ class Account(InheritableSQLObject):
|
|||||||
|
|
||||||
def get_update_message_subject(self, lang_class):
|
def get_update_message_subject(self, lang_class):
|
||||||
"""Return localized message subject for existing account"""
|
"""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):
|
def get_update_message_body(self, lang_class):
|
||||||
"""Return localized message body for existing account"""
|
"""Return localized message body for existing account"""
|
||||||
return lang_class.new_account_message_body
|
return lang_class.update_account_message_body
|
||||||
|
|
||||||
class PresenceAccount(Account):
|
class PresenceAccount(Account):
|
||||||
DO_NOTHING = 0
|
DO_NOTHING = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user