예제 #1
0
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
    )
예제 #2
0
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
    )
예제 #3
0
 def _callFUT(self, *args, **kw):
     from guillotina.configure.component import subscriber
     return subscriber(*args, **kw)
예제 #4
0
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)