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

fix #3323 #3367

Merged
merged 3 commits into from
Nov 25, 2021
Merged

fix #3323 #3367

merged 3 commits into from
Nov 25, 2021

Conversation

jensens
Copy link
Member

@jensens jensens commented Nov 25, 2021

see #3323

@mister-roboto
Copy link

@jensens thanks for creating this Pull Request and help improve Plone!

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass.

Whenever you feel that the pull request is ready to be tested, either start all jenkins jobs pull requests by yourself, or simply add a comment in this pull request stating:

@jenkins-plone-org please run jobs

With this simple comment all the jobs will be started automatically.

Happy hacking!

@jensens
Copy link
Member Author

jensens commented Nov 25, 2021

@jenkins-plone-org please run jobs

Products/CMFPlone/Portal.py Outdated Show resolved Hide resolved
Copy link
Member

@ale-rt ale-rt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I added a comment to suggest what I think it is a performance improvement but this is good to go!
Feel free to merge!

@jensens
Copy link
Member Author

jensens commented Nov 25, 2021

@jenkins-plone-org please run jobs

# Return a list of subobjects, used by ZMI tree tag (and only there).
# see also https://github.com/plone/Products.CMFPlone/issues/3323
return sorted(
(obj for obj in self.objectValues() if getattr(aq_base(obj), 'isPrincipiaFolderish', False)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me try:

Suggested change
(obj for obj in self.objectValues() if getattr(aq_base(obj), 'isPrincipiaFolderish', False)),
(
obj
for obj in self.objectValues()
if getattr(aq_base(obj), "isPrincipiaFolderish", False)
),

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, and now I've been to fast.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should run black over the code base

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but not unless the big PR's are merged

Copy link
Member

@ale-rt ale-rt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, with a suggestion (I hope I did it right)

@jensens jensens merged commit 6a951f9 into master Nov 25, 2021
@jensens jensens deleted the fix-3323 branch November 25, 2021 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants