equal
deleted
inserted
replaced
322 `quotalimit` : VirtualMailManager.quotalimit.QuotaLimit |
322 `quotalimit` : VirtualMailManager.quotalimit.QuotaLimit |
323 the new quota limit of the domain. |
323 the new quota limit of the domain. |
324 `force` : bool |
324 `force` : bool |
325 enforce new quota limit for all accounts, default `False` |
325 enforce new quota limit for all accounts, default `False` |
326 """ |
326 """ |
327 if cfg_dget('misc.dovecot_version') < 0x10102f00: |
|
328 raise VMMError(_('PostgreSQL-based dictionary quota requires ' |
|
329 'Dovecot >= v1.1.2.'), VMM_ERROR) |
|
330 self._chk_state() |
327 self._chk_state() |
331 assert isinstance(quotalimit, QuotaLimit) |
328 assert isinstance(quotalimit, QuotaLimit) |
332 if not force and quotalimit == self._qlimit: |
329 if not force and quotalimit == self._qlimit: |
333 return |
330 return |
334 self._update_tables_ref('qid', quotalimit.qid, force) |
331 self._update_tables_ref('qid', quotalimit.qid, force) |