-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar portlet navigation problem #2215
Comments
[1] https://github.com/plone/plone.portlets/blob/2.3/plone/portlets/utils.py#L66 I didn't fix because I don't know why did they use "decode()" at line 66. |
maybe because the use |
Using "blame" it seems to be Python 3 support https://github.com/plone/plone.portlets/blame/2.3/plone/portlets/utils.py#L66. Maybe @davisagli can give us a hint here. |
Confirmed. Summary: you can fix this in individual projects by pinning |
This was already done in 2016 for Plone 5.0. Fixes plone/Products.CMFPlone#2215
BUG/PROBLEM REPORT (OR OTHER COMMON ISSUE)
What I did:
Adding a calendar portlet to the root of the site works well.
What I expect to happen:
Calendar portlet showing next or previous month
What actually happened:
KeyError: u'Cannot find object at path folder-1'
What version of Plone/ Addons I am using:
Plone 4.3.14 no addons.
The error occurs from the version of Plone 4.3.12 and using plone.portlets == 2.3.
Debugging I discovered that the error occurs because the path is being passed as string unicode:
u'/Plone/folder-1'. [1]
For example [2]:
context.restrictedTraverse(u'/Plone/folder-1') ==> *** KeyError: u '/'
[1] https://github.com/plone/plone.portlets/blob/2.3/plone/portlets/utils.py#L66
[2] https://github.com/plone/plone.app.portlets/blob/2.5.6/plone/app/portlets/utils.py#L55
The text was updated successfully, but these errors were encountered: