X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/026f5f3a6274709b7863c619c979dd32f0ee686f..29b9cec06cf295e44693db06422ac986c9214ac4:/config.py?ds=sidebyside diff --git a/config.py b/config.py index 93a6b7b..a0f1c45 100644 --- a/config.py +++ b/config.py @@ -1,12 +1,35 @@ # vim: set et sts=4 sw=4 encoding=utf-8 : +from services import * +from 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 = \