X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/b8c5dbd52084b9a710c9881e327449f9eaec0bdb..f08298e7f441944654b7bc0e0fa4736bfa037c76:/config.py?ds=inline diff --git a/config.py b/config.py index f433170..059faae 100644 --- a/config.py +++ b/config.py @@ -1,18 +1,35 @@ # vim: set et sts=4 sw=4 encoding=utf-8 : -from services import * +from pymin.services import * +from pymin.dispatcher import handler # XXX for testing only +@handler def test_func(*args): print 'func:', args routes = dict \ ( - test = test_func, dhcp = DhcpHandler( pickle_dir = 'var/lib/pymin/pickle/dhcp', config_dir = 'var/lib/pymin/config/dhcp', ), + dns = DnsHandler( + pickle_dir = 'var/lib/pymin/pickle/dns', + config_dir = 'var/lib/pymin/config/dns', + ), + firewall = FirewallHandler( + pickle_dir = 'var/lib/pymin/pickle/firewall', + config_dir = 'var/lib/pymin/config/firewall', + ), + ip = IpHandler( + pickle_dir = 'var/lib/pymin/pickle/ip', + config_dir = 'var/lib/pymin/config/ip', + ), + proxy = ProxyHandler( + pickle_dir = 'var/lib/pymin/pickle/proxy', + config_dir = 'var/lib/pymin/config/proxy', + ), ) bind_addr = \