eea.facetednavigation
eea.facetednavigation copied to clipboard
Path widget doesn't work if Plone site id is "plone"
If you want to use the path widget with a plone site named plone, you get a traceback :
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 155, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 337, in publish_module
Module ZPublisher.WSGIPublisher, line 255, in publish
Module ZPublisher.mapply, line 85, in mapply
Module ZPublisher.WSGIPublisher, line 61, in call_object
Module eea.facetednavigation.caching.nocache, line 12, in replacement
Module eea.facetednavigation.widgets.path.tree, line 168, in json_tree
Module eea.facetednavigation.widgets.path.tree, line 90, in tree
Module plone.app.layout.navigation.navtree, line 133, in buildFolderTree
AttributeError: 'Plone' object has no attribute 'getPhysicalPath'
Indeed, self.context.unrestrictedTraverse(url.strip('/'), None) on /plone returns a Products.Five.browser.metaconfigure.Plone object ...
@laulaz Can't reproduce it:
docker run -it --rm -e ADDONS=eea.facetednavigation -e SITE=Plone -p 8080:8080 plone fg



Ok, I think I missed the part with the Plone site ID = 'plone'. Indeed, issue confirmed.