-
-
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
fix #3323 #3367
Conversation
@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:
With this simple comment all the jobs will be started automatically. Happy hacking! |
@jenkins-plone-org please run jobs |
There was a problem hiding this 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!
@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)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me try:
(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) | |
), |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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)
see #3323