def doRestartCustomersRejector(self, arg): """ Action method. """ if driver.is_on('service_customer_patrol'): from supplier import customers_rejector customers_rejector.A('restart')
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')
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
def _on_donated_space_modified(self, path, value, oldvalue, result): from supplier import customers_rejector customers_rejector.A('restart')