VirtualMailManager/serviceset.py
branchv0.6.x
changeset 443 e2b9e3de2b51
parent 440 1a08fe35b496
child 482 428ee9cdf1b2
--- 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