def load_subscriber(_context, subscriber): conf = subscriber['config'] conf['handler'] = resolve_dotted_name(conf.get('handler') or subscriber['klass']) _component_conf(conf) component.subscriber( _context, **conf )
def _callFUT(self, *args, **kw): from guillotina.configure.component import subscriber return subscriber(*args, **kw)
def load_subscriber(_context, subscriber): conf = subscriber["config"] conf["handler"] = resolve_dotted_name( conf.get("handler") or subscriber["klass"]) _component_conf(conf) component.subscriber(_context, **conf)
def _callFUT(self, *args, **kw): # noqa: N802 from guillotina.configure.component import subscriber return subscriber(*args, **kw)