TransactionalHandler, ParametersHandler, \
DictSubHandler
-__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.
from pymin.services.util import Restorable, ConfigWriter, ServiceHandler, \
TransactionalHandler, ListSubHandler
-__ALL__ = ('FirewallHandler', 'Error')
-
-class Error(HandlerError):
- r"""
- Error(command) -> Error instance :: Base FirewallHandler exception class.
-
- All exceptions raised by the FirewallHandler inherits from this one, so you can
- easily catch any FirewallHandler exception.
-
- message - A descriptive error message.
- """
- pass
+__ALL__ = ('FirewallHandler',)
class Rule(Sequence):
r"""Rule(chain, target[, src[, dst[, ...]]]) -> Rule instance.
ReloadHandler, TransactionalHandler, \
ListSubHandler, call
-__ALL__ = ('NatHandler', 'Error')
-
-class Error(HandlerError):
- r"""
- Error(command) -> Error instance :: Base NatHandler exception class.
-
- All exceptions raised by the NatHandler inherits from this one, so you can
- easily catch any NatHandler exception.
-
- message - A descriptive error message.
- """
- pass
+__ALL__ = ('NatHandler',)
class PortForward(Sequence):
r"""PortForward(dev, protocol, port, dst[, dst_port[, ...]]) -> PortForward.
from pymin.services.util import Restorable, ConfigWriter \
,TransactionalHandler, DictSubHandler, call
-__ALL__ = ('PppHandler')
-
-class Error(HandlerError):
- r"""
- Error(command) -> Error instance :: Base ConnectionHandler exception class.
-
- All exceptions raised by the ConnectionHandler inherits from this one, so you can
- easily catch any ConnectionHandler exception.
-
- message - A descriptive error message.
- """
- pass
+__ALL__ = ('PppHandler',)
class ConnectionError(Error, KeyError):
r"""
import crypt
-__ALL__ = ('ProxyHandler', 'Error')
-
-class Error(HandlerError):
- r"""
- Error(command) -> Error instance :: Base DnsHandler exception class.
-
- All exceptions raised by the DnsHandler inherits from this one, so you can
- easily catch any DnsHandler exception.
-
- message - A descriptive error message.
- """
- pass
+__ALL__ = ('ProxyHandler',)
class Host(Sequence):
def __init__(self,ip):
from pymin.dispatcher import Handler, handler, HandlerError
from pymin.services.util import Restorable, TransactionalHandler, ParametersHandler, call
-__ALL__ = ('VrrpHandler')
+__ALL__ = ('VrrpHandler',)
pid_filename = 'vrrp.pid'