

def setPath(self, path):
    self._layout.removeAllComponents()
    link = ActiveLink('Home', ExternalResource('#'))
    link.addListener(self, ILinkActivatedListener)
    self._layout.addComponent(link)
    if ((path is not None) and (not ('' == path))):
        parts = path.split('/')
        link = None
        for part in parts:
            separator = Label('&raquo;', Label.CONTENT_XHTML)
            separator.setSizeUndefined()
            self._layout.addComponent(separator)
            f = FeatureSet.FEATURES.getFeature(part)
            link = ActiveLink(f.getName(), ExternalResource(('#' + f.getFragmentName())))
            link.setData(f)
            link.addListener(self, ILinkActivatedListener)
            self._layout.addComponent(f)
        if (link is not None):
            link.setStyleName('bold')

dataset/ETHPy150Open rwl/muntjac/muntjac/demo/sampler/SamplerApplication.py BreadCrumbs.setPath/VarMisuse@174/220 `link`->`f`