Skip to content
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

Error in listAvailableLanguageInformation #40

Open
reinhardt opened this issue Nov 16, 2021 · 1 comment
Open

Error in listAvailableLanguageInformation #40

reinhardt opened this issue Nov 16, 2021 · 1 comment

Comments

@reinhardt
Copy link
Contributor

pl = api.portal.get_tool("portal_languages")
pl.listAvailableLanguageInformation()

*** TypeError: sort() takes no positional arguments
Traceback (most recent call last):
  File ".../plone.i18n-4.0.7-py3.8.egg/plone/i18n/utility.py", line 150, in listAvailableLanguageInformation
    new_langs.sort(
@reinhardt
Copy link
Contributor Author

Tested again with current coredev 6.0, plone.i18n master (5.0.0a4) - still the same issue.

mister-roboto pushed a commit to plone/buildout.coredev that referenced this issue Nov 30, 2022
Branch: refs/heads/master
Date: 2022-11-30T05:43:41+01:00
Author: Manuel Reinhardt (reinhardt) <[email protected]>
Commit: plone/plone.i18n@973cf1a

Fixed sort() call in listAvailableLanguageInformation.
Refs plone/plone.i18n#40

Files changed:
A news/40.bugfix
M plone/i18n/utility.py
Repository: plone.i18n

Branch: refs/heads/master
Date: 2022-11-30T06:42:19+01:00
Author: Gil Forcada Codinachs (gforcada) <[email protected]>
Commit: plone/plone.i18n@de6e694

Merge pull request #43 from plone/fix-listAvailableLanguageInformation

Fix listAvailableLanguageInformation

Files changed:
A news/40.bugfix
M plone/i18n/utility.py
@gforcada gforcada mentioned this issue Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant