MCPcopy Index your code
hub / github.com/ddserver/ddserver / config_email

Function config_email

ddserver/mail.py:29–53  ·  view source on GitHub ↗
(config_decl)

Source from the content-addressed store, hash-verified

27
28@extend('ddserver.config:ConfigDeclaration')
29def config_email(config_decl):
30 with config_decl.declare('smtp') as s:
31 s('host',
32 conv = str,
33 default = 'localhost')
34 s('port',
35 conv = int,
36 default = 25)
37
38 with config_decl.declare('contact') as s:
39 s('name',
40 conv = str,
41 default = 'Your Administrator')
42 s('email',
43 conv = str)
44
45 with config_decl.declare('wsgi') as s:
46 s('protocol',
47 conv = str,
48 default = 'http://')
49
50 with config_decl.declare('wsgi') as s:
51 s('basename',
52 conv = str,
53 default = 'localhost:8080')
54
55
56

Callers

nothing calls this directly

Calls 2

sFunction · 0.85
declareMethod · 0.80

Tested by

no test coverage detected