# HG changeset patch # User Pascal Volk # Date 1297567951 0 # Node ID 8984b1f4e6e3b133f5b085562b472a856f1993c4 # Parent 00a8c12a3da38b5ed2a56ae7465ebb45b8d0d76c VMM/domain: Execute the database updates of Domain.update_{quotalimit,transport}() when argument force is True, even when the 'new' setting is the same as the current one. diff -r 00a8c12a3da3 -r 8984b1f4e6e3 VirtualMailManager/domain.py --- a/VirtualMailManager/domain.py Sat Feb 12 20:40:44 2011 +0000 +++ b/VirtualMailManager/domain.py Sun Feb 13 03:32:31 2011 +0000 @@ -268,7 +268,7 @@ """ self._chk_state() assert isinstance(quotalimit, QuotaLimit) - if quotalimit == self._qlimit: + if not force and quotalimit == self._qlimit: return self._update_tables('qid', quotalimit.qid, force) self._qlimit = quotalimit @@ -289,7 +289,7 @@ """ self._chk_state() assert isinstance(transport, Transport) - if transport == self._transport: + if not force and transport == self._transport: return self._update_tables('tid', transport.tid, force) self._transport = transport