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):
handler_help = u"Manage proxy hosts"
- _dict_subhandler_attr = 'hosts'
- _dict_subhandler_class = Host
+ _cont_subhandler_attr = 'hosts'
+ _cont_subhandler_class = Host
class User(Sequence):
def __init__(self, name, password):
handler_help = u"Manage proxy users"
- _dict_subhandler_attr = 'users'
- _dict_subhandler_class = User
+ _cont_subhandler_attr = 'users'
+ _cont_subhandler_class = User
class ProxyHandler(Restorable, ConfigWriter, InitdHandler,
TransactionalHandler, ParametersHandler):
self._persistent_dir = pickle_dir
self._config_writer_cfg_dir = config_dir
self._config_build_templates()
- self._restore()
+ InitdHandler.__init__(self)
self.host = HostHandler(self)
self.user = UserHandler(self)