| 27 | |
| 28 | @extend('ddserver.config:ConfigDeclaration') |
| 29 | def 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 | |