VMM/serviceset: Added @property ServiceSet.services -> dict.
--- a/VirtualMailManager/serviceset.py Tue Nov 01 13:07:45 2011 +0000
+++ b/VirtualMailManager/serviceset.py Tue Nov 01 23:37:06 2011 +0000
@@ -29,6 +29,8 @@
Boolean flag for service imap
`sieve` : bool
Boolean flag for service sieve
+ `services` : dict
+ The four services above with boolean values
"""
__slots__ = ('_ssid', '_services', '_sieve_col', '_dbh')
_kwargs = (('ssid',) + SERVICES)
@@ -152,4 +154,10 @@
self._ssid = dbc.fetchone()[0]
dbc.close()
+ @property
+ def services(self):
+ """A dictionary: Keys: `smtp`, `pop3`, `imap` and `sieve` with
+ boolean values."""
+ return self._services.copy()
+
del cfg_dget