Пример #1
0
 def doRestartCustomersRejector(self, arg):
     """
     Action method.
     """
     if driver.is_on('service_customer_patrol'):
         from supplier import customers_rejector
         customers_rejector.A('restart')
Пример #2
0
 def doRestartCustomersRejector(self, *args, **kwargs):
     """
     Action method.
     """
     if driver.is_on('service_customer_patrol'):
         # TODO: move this into a callback inside service_customer_patrol
         from supplier import customers_rejector
         customers_rejector.A('restart')
Пример #3
0
 def start(self):
     from supplier import customers_rejector
     from main.config import conf
     from supplier import local_tester
     customers_rejector.A('restart')
     conf().addCallback('services/supplier/donated-space',
                        self._on_donated_space_modified)
     local_tester.init()
     return True
Пример #4
0
 def _on_donated_space_modified(self, path, value, oldvalue, result):
     from supplier import customers_rejector
     customers_rejector.A('restart')