X-Git-Url: https://git.llucax.com/software/pymin.git/blobdiff_plain/b9f71ad8a238ed93c7e515cc9602d11700f183ae..b4fcac506d5bf8ecc5e5c3c7ca2e788e7ef1b128:/pymin/services/proxy/__init__.py?ds=sidebyside diff --git a/pymin/services/proxy/__init__.py b/pymin/services/proxy/__init__.py index 0577938..715b0ab 100644 --- a/pymin/services/proxy/__init__.py +++ b/pymin/services/proxy/__init__.py @@ -10,18 +10,7 @@ from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \ 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): @@ -35,8 +24,8 @@ class HostHandler(DictSubHandler): 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): @@ -52,8 +41,8 @@ class UserHandler(DictSubHandler): 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):