From 7f4f8355aa99de86b26a413ff7c740da15e5e171 Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Mon, 8 Oct 2007 21:39:13 +0200 Subject: [PATCH] Override Account default message status method darcs-hash:20071008193913-86b55-462dbced400078211a051151b22e32517b8b20cf.gz --- src/jmc/model/account.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jmc/model/account.py b/src/jmc/model/account.py index d9ff87c..4502e44 100644 --- a/src/jmc/model/account.py +++ b/src/jmc/model/account.py @@ -338,7 +338,7 @@ class MailAccount(PresenceAccount): def format_message_summary(self, email_msg): return self.format_message(email_msg, False) - def get_status_msg(self): + def get_default_status_msg(self, lang_class): return self.get_type() + "://" + self.login + "@" + self.host + ":" + \ unicode(self.port) @@ -363,6 +363,9 @@ class MailAccount(PresenceAccount): def is_mail_list_valid(self, mail_list): return (mail_list and mail_list != [] and mail_list[0] != '') + def get_type(self): + raise NotImplementedError + # Does not modify server state but just internal JMC state def mark_all_as_read(self): raise NotImplementedError