X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/0e293d049f3d4dac748a1630b8258ea10b709db2..f2571fe7b62abfa67f4b805c266869058647afff:/config.py?ds=sidebyside diff --git a/config.py b/config.py index 9b0932d..5ae043d 100644 --- a/config.py +++ b/config.py @@ -1,25 +1,24 @@ # vim: set et sts=4 sw=4 encoding=utf-8 : -from services import * -from dispatcher import handler +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, +class Root(Handler): dhcp = DhcpHandler( pickle_dir = 'var/lib/pymin/pickle/dhcp', - config_dir = 'var/lib/pymin/config/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', - ), -) + 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 = \ (