]> git.llucax.com Git - software/pymin.git/blobdiff - pymin/services/proxy/__init__.py
Use a plug-in architecture for services (refs #27).
[software/pymin.git] / pymin / services / proxy / __init__.py
index 5ab624beba4737f26ec3efbd664c6b07505aa989..448f568fec488d9e13dccaa7a4449f0e05274965 100644 (file)
@@ -11,7 +11,13 @@ from pymin.services.util import Restorable, ConfigWriter, InitdHandler, \
 
 import crypt
 
-__all__ = ('ProxyHandler',)
+
+__all__ = ('ProxyHandler', 'get_service')
+
+
+def get_service(config):
+    return ProxyHandler(config.proxy.pickle_dir, config.proxy.config_dir)
+
 
 class Host(Sequence):
     def __init__(self,ip):