VirtualMailManager/serviceset.py
branchv0.6.x
changeset 482 428ee9cdf1b2
parent 443 e2b9e3de2b51
child 568 14abdd04ddf5
--- a/VirtualMailManager/serviceset.py	Sun Nov 13 20:18:41 2011 +0000
+++ b/VirtualMailManager/serviceset.py	Sun Nov 13 20:19:40 2011 +0000
@@ -129,7 +129,12 @@
         if not result:
             raise ValueError('Unknown service_set id specified: %r' % ssid)
         self._ssid = result[0]
-        self._services.update(zip(SERVICES, result[1:]))
+        #self._services.update(zip(SERVICES, result[1:]))
+        for key, value in zip(SERVICES, result[1:]):  # pyPgSQL compatible
+            if value:
+                self._services[key] = True
+            else:
+                self._services[key] = False
 
     def _save(self):
         """Store a new service_set in the database."""