Skip to content

Commit

Permalink
Merge pull request #84 from plone/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate

[ci-skip]
  • Loading branch information
gforcada authored Feb 5, 2024
2 parents 8c0c0e5 + be260a4 commit d148e7e
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/collective/zpretty
Expand All @@ -32,7 +32,7 @@ repos:
# """
##
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8

Expand Down
1 change: 0 additions & 1 deletion src/Products/PlonePAS/interfaces/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def wrapGroup(group):


class IGroupTool(IGroupIntrospection, IGroupManagement, plugins.IGroupsPlugin):

"""
Defines an interface for managing and introspecting and
groups and group membership.
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/cookie_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
provide similar functionality as CookieCrumbler does... by giving
the portal the ability to provide a setAuthCookie method.
"""

from AccessControl.class_init import InitializeClass
from AccessControl.SecurityInfo import ClassSecurityInfo
from AccessControl.SecurityManagement import getSecurityManager
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/crumbler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
This allows form logins to fall through to parent user folders.
"""

from AccessControl.class_init import InitializeClass
from AccessControl.SecurityInfo import ClassSecurityInfo
from Acquisition import aq_base
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
management (ie. rw) capabilities.
"""

from .ufactory import PloneUser
from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/local_role.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
roles from their containment structure.
"""

from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from Acquisition import aq_inner
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/passwordpolicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Password Validation plugin (IValidationPlugin)
Mutable Property Provider
"""

from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/property.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Mutable Property Provider
"""

from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from App.special_dtml import DTMLFile
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
to the principal.
"""

from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from AccessControl.requestmethod import postonly
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/plugins/user.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
ZODB based user manager with introspection and management interfaces.
"""

from AccessControl import ClassSecurityInfo
from AccessControl.class_init import InitializeClass
from AccessControl.Permissions import manage_users as ManageUsers
Expand Down
1 change: 1 addition & 0 deletions src/Products/PlonePAS/sheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
also a property schema type registry which is extensible.
"""

from Products.CMFCore.interfaces import ISiteRoot
from Products.PlonePAS.interfaces.propertysheets import IMutablePropertySheet
from Products.PluggableAuthService.UserPropertySheet import UserPropertySheet
Expand Down
6 changes: 3 additions & 3 deletions src/Products/PlonePAS/tests/test_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ def test_zope_root_cookie_login(self):
# Submit the login form in the browser
login_form = browser.getForm()
login_form.getControl(name="__ac_name").value = pa_testing.SITE_OWNER_NAME
login_form.getControl(
name="__ac_password"
).value = pa_testing.SITE_OWNER_PASSWORD
login_form.getControl(name="__ac_password").value = (
pa_testing.SITE_OWNER_PASSWORD
)
login_form.controls[-1].click()
self.assertEqual(
browser.headers["Status"].lower(),
Expand Down

0 comments on commit d148e7e

Please sign in to comment.