import inspect
import logging ; log = logging.getLogger('pymin.dispatcher')
-__ALL__ = ('Error', 'HandlerError', 'CommandNotFoundError', 'Handler',
+__all__ = ('Error', 'HandlerError', 'CommandNotFoundError', 'Handler',
'Dispatcher', 'handler', 'is_handler', 'get_help')
class Error(RuntimeError):
from select import POLLIN, POLLPRI, POLLERR
import logging ; log = logging.getLogger('pymin.eventloop')
-__ALL__ = ('EventLoop', 'LoopInterruptedError')
+__all__ = ('EventLoop', 'LoopInterruptedError')
class LoopInterruptedError(RuntimeError):
r"""
import subprocess
import logging ; log = logging.getLogger('pymin.procman')
-__ALL__ = ('ProcessManager', 'manager', 'register', 'unregister', 'call',
+__all__ = ('ProcessManager', 'manager', 'register', 'unregister', 'call',
'start', 'stop', 'kill', 'get', 'has', 'sigchild_handler')
class ProcessInfo:
TransactionalHandler, ParametersHandler, \
DictSubHandler, ReloadHandler
-__ALL__ = ('DhcpHandler',)
+__all__ = ('DhcpHandler',)
class Host(Sequence):
r"""Host(name, ip, mac) -> Host instance :: Class representing a host.
TransactionalHandler, ParametersHandler, \
DictComposedSubHandler, DictSubHandler, call
-__ALL__ = ('DnsHandler',)
+__all__ = ('DnsHandler',)
class Host(Sequence):
def __init__(self, name, ip):
from pymin.services.util import Restorable, ConfigWriter, ServiceHandler, \
TransactionalHandler, ListSubHandler
-__ALL__ = ('FirewallHandler',)
+__all__ = ('FirewallHandler',)
class Rule(Sequence):
r"""Rule(chain, target[, src[, dst[, ...]]]) -> Rule instance.
DictComposedSubHandler, Device, Address, \
ExecutionError
-__ALL__ = ('IpHandler',)
+__all__ = ('IpHandler',)
# TODO: convertir HopHandler a ComposedSubHandler
ReloadHandler, TransactionalHandler, \
ServiceHandler, ListSubHandler, call
-__ALL__ = ('NatHandler',)
+__all__ = ('NatHandler',)
class PortForward(Sequence):
r"""PortForward(dev, protocol, port, dst[, dst_port[, ...]]) -> PortForward.
from pymin.services.util import Restorable, ConfigWriter, ReloadHandler, \
TransactionalHandler, DictSubHandler, call
-__ALL__ = ('PppHandler',)
+__all__ = ('PppHandler',)
class ConnectionError(HandlerError, KeyError):
r"""
import crypt
-__ALL__ = ('ProxyHandler',)
+__all__ = ('ProxyHandler',)
class Host(Sequence):
def __init__(self,ip):
get_network_devices, ListComposedSubHandler, \
DictComposedSubHandler, ExecutionError
-__ALL__ = ('QoSHandler',)
+__all__ = ('QoSHandler',)
class DeviceError(HandlerError):
#DEBUG = False
DEBUG = True
-__ALL__ = ('Error', 'ExecutionError', 'ItemError', 'ItemAlreadyExistsError',
+__all__ = ('Error', 'ExecutionError', 'ItemError', 'ItemAlreadyExistsError',
'ItemNotFoundError', 'ContainerError', 'ContainerNotFoundError',
'call', 'get_network_devices', 'Persistent', 'Restorable',
'ConfigWriter', 'ServiceHandler', 'RestartHandler',
ReloadHandler, RestartHandler, \
ServiceHandler, ParametersHandler, call
-__ALL__ = ('VrrpHandler',)
+__all__ = ('VrrpHandler',)
# FIXME the the command should not use new parameters unless commit where called
# i.e. integrate commit with procman to update internal procman parameters.
Nice, ugh?
"""
-__ALL__ = ('Field', 'ValidatedClass')
+__all__ = ('Field', 'ValidatedClass')
from formencode import Invalid
from formencode.schema import Schema