tools/cr/cr/plugin.py
def Select(cls):
    """Called to determine which plugin should be the active one."""
    plugin = cls.default
    selector = getattr(cls, 'SELECTOR', None)
    if selector:
      if plugin is not None:
        _selectors[selector] = plugin.name
      name = cr.context.Find(selector)
      if name is not None:
        plugin = cls.FindPlugin(name)
    return plugin
Called to determine which plugin should be the active one.
Called to determine which plugin should be the active one.
Called to determine which plugin should be the active one .
def Select(cls):
    plugin = cls.default
    selector = getattr(cls, 'SELECTOR', None)
    if selector:
      if plugin is not None:
        _selectors[selector] = plugin.name
      name = cr.context.Find(selector)
      if name is not None:
        plugin = cls.FindPlugin(name)
    return plugin
def Select ( cls ) : plugin = cls . default selector = getattr ( cls , 'SELECTOR' , None ) if selector : if plugin is not None : _selectors [ selector ] = plugin . name name = cr . context . Find ( selector ) if name is not None : plugin = cls . FindPlugin ( name ) return plugin
Called to determine which plugin should be the active one.
Called to determine which plugin should be the active one .
"""Called to determine which plugin should be the active one."""
cls