VirtualMailManager/domain.py
branchv0.6.x
changeset 402 8984b1f4e6e3
parent 392 ffce67e3c6eb
child 404 0c52094447b0
equal deleted inserted replaced
401:00a8c12a3da3 402:8984b1f4e6e3
   266         `force` : bool
   266         `force` : bool
   267           enforce new quota limit for all accounts, default `False`
   267           enforce new quota limit for all accounts, default `False`
   268         """
   268         """
   269         self._chk_state()
   269         self._chk_state()
   270         assert isinstance(quotalimit, QuotaLimit)
   270         assert isinstance(quotalimit, QuotaLimit)
   271         if quotalimit == self._qlimit:
   271         if not force and quotalimit == self._qlimit:
   272             return
   272             return
   273         self._update_tables('qid', quotalimit.qid, force)
   273         self._update_tables('qid', quotalimit.qid, force)
   274         self._qlimit = quotalimit
   274         self._qlimit = quotalimit
   275 
   275 
   276     def update_transport(self, transport, force=False):
   276     def update_transport(self, transport, force=False):
   287         `force` : bool
   287         `force` : bool
   288           enforce new transport setting for all accounts, default `False`
   288           enforce new transport setting for all accounts, default `False`
   289         """
   289         """
   290         self._chk_state()
   290         self._chk_state()
   291         assert isinstance(transport, Transport)
   291         assert isinstance(transport, Transport)
   292         if transport == self._transport:
   292         if not force and transport == self._transport:
   293             return
   293             return
   294         self._update_tables('tid', transport.tid, force)
   294         self._update_tables('tid', transport.tid, force)
   295         self._transport = transport
   295         self._transport = transport
   296 
   296 
   297     def get_info(self):
   297     def get_info(self):