web/views/magicsearch.py
changeset 2650 18aec79ec3a3
parent 2567 961aa959f07a
child 2890 fdcb8a2bb6eb
child 3362 2a2dcfb379a0
equal deleted inserted replaced
2649:5d4a943695d1 2650:18aec79ec3a3
   346     id  = 'magicsearch'
   346     id  = 'magicsearch'
   347     def __init__(self, req, rset=None):
   347     def __init__(self, req, rset=None):
   348         super(MagicSearchComponent, self).__init__(req, rset)
   348         super(MagicSearchComponent, self).__init__(req, rset)
   349         processors = []
   349         processors = []
   350         self.by_name = {}
   350         self.by_name = {}
   351         for processorcls in self.vreg.registry_objects('components',
   351         for processorcls in self.vreg['components']['magicsearch_processor']:
   352                                                        'magicsearch_processor'):
       
   353             # instantiation needed
   352             # instantiation needed
   354             processor = processorcls()
   353             processor = processorcls()
   355             processors.append(processor)
   354             processors.append(processor)
   356             if processor.name is not None:
   355             if processor.name is not None:
   357                 assert not processor.name in self.by_name
   356                 assert not processor.name in self.by_name