comparison src/plugins/plugin_misc_smtp.py @ 2145:33c8c4973743

core (plugins): added missing contants + use of new constants in PLUGIN_INFO
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 18:59:10 +0100
parents 1d3f73e065e1
children
comparison
equal deleted inserted replaced
2144:1d3f73e065e1 2145:33c8c4973743
16 16
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import _ 20 from sat.core.i18n import _
21 from sat.core.constants import Const as C
21 from sat.core.log import getLogger 22 from sat.core.log import getLogger
22 log = getLogger(__name__) 23 log = getLogger(__name__)
23 from twisted.internet import defer 24 from twisted.internet import defer
24 from twisted.cred import portal, checkers, credentials 25 from twisted.cred import portal, checkers, credentials
25 from twisted.cred import error as cred_error 26 from twisted.cred import error as cred_error
32 import sys 33 import sys
33 34
34 from zope.interface import implements 35 from zope.interface import implements
35 36
36 PLUGIN_INFO = { 37 PLUGIN_INFO = {
37 "name": "SMTP server Plugin", 38 C.PI_NAME: "SMTP server Plugin",
38 "import_name": "SMTP", 39 C.PI_IMPORT_NAME: "SMTP",
39 "type": "Misc", 40 C.PI_TYPE: "Misc",
40 "protocols": [], 41 C.PI_PROTOCOLS: [],
41 "dependencies": ["Maildir"], 42 C.PI_DEPENDENCIES: ["Maildir"],
42 "main": "SMTP_server", 43 C.PI_MAIN: "SMTP_server",
43 "handler": "no", 44 C.PI_HANDLER: "no",
44 "description": _("""Create a SMTP server that you can use to send your "normal" type messages""") 45 C.PI_DESCRIPTION: _("""Create a SMTP server that you can use to send your "normal" type messages""")
45 } 46 }
46 47
47 48
48 class SMTP_server(object): 49 class SMTP_server(object):
49 50