Ejemplo n.º 1
0
 def __init__(self, app):
     Greenlet.__init__(self)
     self.is_stopped = False
     self.app = app
     self.config = utils.update_config_with_defaults(app.config, self.default_config)
     available_service = [s.__class__ for s in self.app.services.values()]
     for r in self.required_services:
         assert r in available_service, (r, available_service)
Ejemplo n.º 2
0
 def __init__(self, config=default_config):
     self.config = utils.update_config_with_defaults(config, self.default_config)
     self.services = IterableUserDict()