From 76c1d6968b37db177505ab7d8943313b7ac9d78a Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Tue, 5 Jun 2007 21:46:57 +0200 Subject: [PATCH] Implementation of missing get_default_port in SMTPAccount darcs-hash:20070605194657-86b55-e5f855687c035bcb6ed21a92eccf6320fbeb2a32.gz --- src/jmc/model/account.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jmc/model/account.py b/src/jmc/model/account.py index 365dcdd..6235556 100644 --- a/src/jmc/model/account.py +++ b/src/jmc/model/account.py @@ -560,6 +560,12 @@ class SMTPAccount(Account): Account._init(self, *args, **kw) self.__logger = logging.getLogger("jmc.model.account.SMTPAccount") + def _get_default_port(cls): + """Return default SMTP server port""" + return 25 + + get_default_port = classmethod(_get_default_port) + def _get_register_fields(cls, real_class=None): """See Account._get_register_fields """