VMM/serviceset: Added module constant SERVICES.
--- 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.