VMM/serviceset: Added module constant SERVICES. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Mon, 31 Oct 2011 22:14:22 +0000
branchv0.6.x
changeset 439 39036f5e6387
parent 438 e35efe931af3
child 440 1a08fe35b496
VMM/serviceset: Added module constant SERVICES.
VirtualMailManager/serviceset.py
--- a/VirtualMailManager/serviceset.py	Sun Oct 30 11:41:11 2011 +0000
+++ b/VirtualMailManager/serviceset.py	Mon Oct 31 22:14:22 2011 +0000
@@ -9,6 +9,8 @@
     to the service_set table.
 """
 
+SERVICES = ('smtp', 'pop3', 'imap', 'sieve')
+
 cfg_dget = lambda option: None
 
 
@@ -29,7 +31,7 @@
       Boolean flag for service sieve
     """
     __slots__ = ('_ssid', '_services', '_sieve_col', '_dbh')
-    _kwargs = ('ssid', 'smtp', 'pop3', 'imap', 'sieve')
+    _kwargs = (('ssid',) + SERVICES)
 
     def __init__(self, dbh, **kwargs):
         """Creates a new ServiceSet instance.