We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Title
With types defined with matching translated titles, e.g. two "Folder" types like:
[... ('Folder', {'action': 'http://localhost:8080/Plone/++add++Folder', 'description': '', 'extra': {'class': 'contenttype-folder', 'id': 'folder', 'separator': None}, 'icon': None, 'id': 'Folder', 'selected': False, 'submenu': None, 'title': 'Folder'}), ... ('Folder', {'action': 'http://localhost:8080/Plone/++add++customers.special.Folder', 'description': '', 'extra': {'class': 'contenttype-customers-special-folder', 'id': 'customers-special-folder', 'separator': None}, 'icon': None, 'id': 'customers.special.Folder', 'selected': False, 'submenu': None, 'title': 'Folder'})]
This section of code forced to compare dictionaries:
plone.app.content/plone/app/content/browser/folderfactories.py
Lines 141 to 145 in bb29d64
Which results the following error:
TypeError: '<' not supported between instances of 'dict' and 'dict'
results.sort(key=lambda ctype: translate(ctype['title'], context=request))
Note: Unless this violates some underlying rule banning matching titles for content types.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected result
Current behavior
Details
With types defined with matching translated titles, e.g. two "Folder" types like:
This section of code forced to compare dictionaries:
plone.app.content/plone/app/content/browser/folderfactories.py
Lines 141 to 145 in bb29d64
Which results the following error:
Suggested solution
Note: Unless this violates some underlying rule banning matching titles for content types.
The text was updated successfully, but these errors were encountered: