# HG changeset patch # User Pascal Volk # Date 1320109293 0 # Node ID 1a08fe35b4960ff86bdff35c6bd37d5e6c370e9a # Parent 39036f5e6387e3c34207050facde501439451638 VMM/serviceset: Use SERVICES inside of ServiceSet - avoid slicing. diff -r 39036f5e6387 -r 1a08fe35b496 VirtualMailManager/serviceset.py --- a/VirtualMailManager/serviceset.py Mon Oct 31 22:14:22 2011 +0000 +++ b/VirtualMailManager/serviceset.py Tue Nov 01 01:01:33 2011 +0000 @@ -57,7 +57,7 @@ """ self._dbh = dbh self._ssid = 0 - self._services = dict.fromkeys(self.__class__._kwargs[1:], True) + self._services = dict.fromkeys(SERVICES, True) if cfg_dget('misc.dovecot_version') < 0x10200b02: self._sieve_col = 'managesieve' else: @@ -127,7 +127,7 @@ if not result: raise ValueError('Unknown service_set id specified: %r' % ssid) self._ssid = result[0] - self._services.update(zip(self.__class__._kwargs[1:], result[1:])) + self._services.update(zip(SERVICES, result[1:])) def _save(self): """Store a new service_set in the database."""