X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/b9f71ad8a238ed93c7e515cc9602d11700f183ae..f1bb67630d2233b46673806941bd71b22e6147ab:/pymin/services/dhcp/__init__.py diff --git a/pymin/services/dhcp/__init__.py b/pymin/services/dhcp/__init__.py index dd2fa9d..251553b 100644 --- a/pymin/services/dhcp/__init__.py +++ b/pymin/services/dhcp/__init__.py @@ -6,20 +6,9 @@ from pymin.seqtools import Sequence from pymin.dispatcher import Handler, handler, HandlerError from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \ TransactionalHandler, ParametersHandler, \ - DictSubHandler + DictSubHandler, ReloadHandler -__ALL__ = ('DhcpHandler', 'Error') - -class Error(HandlerError): - r""" - Error(message) -> Error instance :: Base DhcpHandler exception class. - - All exceptions raised by the DhcpHandler inherits from this one, so you can - easily catch any DhcpHandler exception. - - message - A descriptive error message. - """ - pass +__ALL__ = ('DhcpHandler',) class Host(Sequence): r"""Host(name, ip, mac) -> Host instance :: Class representing a host. @@ -54,11 +43,11 @@ class HostHandler(DictSubHandler): handler_help = u"Manage DHCP hosts" - _dict_subhandler_attr = 'hosts' - _dict_subhandler_class = Host + _cont_subhandler_attr = 'hosts' + _cont_subhandler_class = Host -class DhcpHandler(Restorable, ConfigWriter, InitdHandler, TransactionalHandler, - ParametersHandler): +class DhcpHandler(Restorable, ConfigWriter, ReloadHandler, TransactionalHandler, + ParametersHandler, InitdHandler): r"""DhcpHandler([pickle_dir[, config_dir]]) -> DhcpHandler instance. Handles DHCP service commands for the dhcpd program.