]> git.llucax.com Git - software/pymin.git/blob - config.py
Add preliminary support for wrong arguments error reporting.
[software/pymin.git] / config.py
1 # vim: set et sts=4 sw=4 encoding=utf-8 :
2
3 from pymin.services import *
4 from pymin.dispatcher import Handler
5 from os.path import join
6
7 base_path = join('var', 'lib', 'pymin')
8 pickle_path = join(base_path, 'pickle')
9 # FIXME, this should be specific for each service
10 config_path = join(base_path, 'config')
11
12 class Root(Handler):
13     dhcp = DhcpHandler(
14         pickle_dir = join(pickle_path, 'dhcp'),
15         config_dir = join(config_path, 'dhcp'))
16     dns = DnsHandler(
17         pickle_dir = join(pickle_path, 'dns'),
18         config_dir = join(config_path, 'dns'))
19     firewall = FirewallHandler(
20         pickle_dir = join(pickle_path, 'firewall'),
21         config_dir = join(config_path, 'firewall'))
22     ip = IpHandler(
23         pickle_dir = join(pickle_path, 'ip'),
24         config_dir = join(config_path, 'ip'))
25     proxy = ProxyHandler(
26         pickle_dir = join(pickle_path, 'proxy'),
27         config_dir = join(config_path, 'proxy'))
28
29 bind_addr = \
30 (
31     '',   # Bind IP ('' is ANY)
32     9999, # Port
33 )
34