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

Plone base overhaul #195

Merged
merged 7 commits into from
May 3, 2022
Merged

Plone base overhaul #195

merged 7 commits into from
May 3, 2022

Conversation

jensens
Copy link
Member

@jensens jensens commented May 1, 2022

  • isort, black, pyupgrade
  • remove six and some bbb
  • use plone.base and move annotation key over to here

@jensens jensens requested review from mauritsvanrees and petschki May 1, 2022 22:41
@mister-roboto
Copy link

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

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@jensens jensens marked this pull request as ready for review May 1, 2022 22:43
@jensens
Copy link
Member Author

jensens commented May 1, 2022

@jenkins-plone-org please run jobs

Copy link
Member

@ksuess ksuess left a comment

Choose a reason for hiding this comment

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

LGTM. Just two docs that still have explicit unicode strings.

@jensens
Copy link
Member Author

jensens commented May 2, 2022

LGTM. Just two docs that still have explicit unicode strings.

Can you give me a hint where? pyupgrade only covers code, so that is probably why.

Copy link
Member

@petschki petschki left a comment

Choose a reason for hiding this comment

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

LGTM

@mauritsvanrees
Copy link
Member

LGTM. Just two docs that still have explicit unicode strings.

Can you give me a hint where? pyupgrade only covers code, so that is probably why.

git grep -w u finds them. I have fixed them and pushed a commit.

@mauritsvanrees mauritsvanrees requested a review from ksuess May 2, 2022 15:13
@ksuess
Copy link
Member

ksuess commented May 2, 2022

LGTM. Just two docs that still have explicit unicode strings.

Can you give me a hint where? pyupgrade only covers code, so that is probably why.

docs:

Define an interface IMyDexterityContentType groked schema, I added::
allowDiscussion = schema.Bool(
title=_(u"Allow Users to Comment"),
description=_(u"Allow users to commemt on you. Comments
are shown at the end of each page"),
required=True,
default=True,
)

# Interface to define the fields we want to add to the comment form.
class ICommentExtenderFields(Interface):
website = schema.TextLine(title=u"Website", required=False)
# Persistent class that implements the ICommentExtenderFields interface
@adapter(Comment)
class CommentExtenderFields(Persistent):
interface.implements(ICommentExtenderFields)
website = u""

@jensens
Copy link
Member Author

jensens commented May 3, 2022

@jenkins-plone-org please run jobs

@jensens jensens merged commit fe10c74 into master May 3, 2022
@jensens jensens deleted the plone-base-overhaul branch May 3, 2022 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants