Skip to content

Commit

Permalink
Remove more old deprecations.
Browse files Browse the repository at this point in the history
As requested in #32.
They seem to have been forgotten in #103.
  • Loading branch information
Michael Howitz committed Oct 7, 2020
1 parent f8c05c0 commit 0e71969
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 21 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ For changes before version 3.0, see ``HISTORY.rst``.

+ ``AccessControl/DTML.py``
+ ``AccessControl/Owned.py``
+ ``AccessControl/Role.py``
+ ``AccessControl/Permissions.py``

- Add deprecation warnings for BBB imports in:
Expand Down
8 changes: 0 additions & 8 deletions src/AccessControl/Owned.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,3 @@
ownableFilter='AccessControl.owner:ownableFilter',
ownerInfo='AccessControl.owner:ownerInfo',
)

deprecated(
"The Owned class has moved to OFS.owner. This compatibility "
"shim will be removed in AccessControl version 5. Please "
"depend on Zope2 and import from OFS.owner or use the "
"new minimal Owned class from AccessControl.owner.",
Owned='OFS.owner:Owned',
)
9 changes: 0 additions & 9 deletions src/AccessControl/Role.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,3 @@
instance_dict='AccessControl.rolemanager:instance_dict',
reqattr='AccessControl.rolemanager:reqattr',
)

deprecated(
"RoleManager has moved to OFS.role. Please "
"depend on Zope and import from OFS.role or use the new minimal "
"RoleManager class from AccessControl.rolemanager. "
"This backward compatibility shim will be removed in AccessControl "
"version 5.",
RoleManager='OFS.role:RoleManager',
)
10 changes: 6 additions & 4 deletions src/AccessControl/User.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,12 @@
)

deprecated(
"The standard Zope user folder implementation has moved to "
"OFS.userfolder. Please depend on Zope2 and import from "
"OFS.userfolder or use the new minimal "
"user folder classes from AccessControl.userfolder.",
"The standard Zope user folder implementation has moved to"
" OFS.userfolder. Please depend on Zope and import from "
" OFS.userfolder or use the new minimal "
" user folder classes from AccessControl.userfolder."
" This backward compatibility shim will be removed in AccessControl"
" version 6.",
BasicUserFolder='OFS.userfolder:BasicUserFolder',
manage_addUserFolder='OFS.userfolder:manage_addUserFolder',
UserFolder='OFS.userfolder:UserFolder',
Expand Down

0 comments on commit 0e71969

Please sign in to comment.