Mercurial > libervia-backend
comparison src/plugins/plugin_misc_smtp.py @ 662:4f747d7fde8c
core: importParams renamed to updateParams: it now updates the parameter instead of appending children if it find an existing one.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 31 Oct 2013 17:14:15 +0100 |
parents | 84a6e83157c2 |
children | bfabeedbf32e |
comparison
equal
deleted
inserted
replaced
661:d81f55a58c08 | 662:4f747d7fde8c |
---|---|
61 def __init__(self, host): | 61 def __init__(self, host): |
62 info(_("Plugin SMTP Server initialization")) | 62 info(_("Plugin SMTP Server initialization")) |
63 self.host = host | 63 self.host = host |
64 | 64 |
65 #parameters | 65 #parameters |
66 host.memory.importParams(self.params) | 66 host.memory.updateParams(self.params) |
67 | 67 |
68 port = int(self.host.memory.getParamA("SMTP Port", "Mail Server")) | 68 port = int(self.host.memory.getParamA("SMTP Port", "Mail Server")) |
69 info(_("Launching SMTP server on port %d"), port) | 69 info(_("Launching SMTP server on port %d"), port) |
70 | 70 |
71 self.server_factory = SmtpServerFactory(self.host) | 71 self.server_factory = SmtpServerFactory(self.host) |