Ignore:
Timestamp:
01/25/13 17:42:19 (15 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Changed discovery to run from arbitrary entry points iterator/group.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/registry/qt.py

    r11252 r11285  
    2121from ..resources import icon_loader 
    2222 
    23 from . import NAMED_COLORS 
     23from . import cache, NAMED_COLORS 
    2424 
    2525 
     
    4242        WidgetDiscovery.__init__(self, registry, cached_descriptions) 
    4343 
    44     def run(self): 
     44    def run(self, entry_points_iter): 
    4545        self.discovery_start.emit() 
    46         WidgetDiscovery.run(self) 
     46        WidgetDiscovery.run(self, entry_points_iter) 
    4747        self.discovery_finished.emit() 
    4848 
     
    339339 
    340340 
    341 def run_discovery(cached=False): 
    342     """Run the default discovery and return an instance 
    343     of :class:`QtWidgetRegistry`. 
    344  
    345     """ 
    346     from . import cache 
     341def run_discovery(entry_points_iter, cached=False): 
     342    """ 
     343    Run the default discovery and return an instance of 
     344    :class:`QtWidgetRegistry`. 
     345 
     346    """ 
    347347    reg_cache = {} 
    348348    if cached: 
Note: See TracChangeset for help on using the changeset viewer.