Implementation of missing get_default_port in SMTPAccount

darcs-hash:20070605194657-86b55-e5f855687c035bcb6ed21a92eccf6320fbeb2a32.gz
This commit is contained in:
David Rousselie
2007-06-05 21:46:57 +02:00
parent d699ed5274
commit 76c1d6968b

View File

@@ -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
"""