Skip to content

Commit

Permalink
#32 Remove deprecated classes and functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
sallner committed Sep 28, 2020
1 parent cd48b85 commit 0a3eaf7
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 74 deletions.
11 changes: 10 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,18 @@ Changelog

For changes before version 3.0, see ``HISTORY.rst``.

4.3 (unreleased)
5.0 (unreleased)
----------------

- Remove deprecated classes and functions in
(`#32 <https://github.com/zopefoundation/AccessControl/issues/32>`_):

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


4.2 (2020-04-20)
----------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
join('include', 'Acquisition', 'Acquisition.h')]),
]

version = '4.3.dev0'
version = '5.0.dev0'


setup(name='AccessControl',
Expand Down
24 changes: 0 additions & 24 deletions src/AccessControl/DTML.py

This file was deleted.

11 changes: 0 additions & 11 deletions src/AccessControl/Owned.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,10 @@
"""Support for owned objects
"""

from zope.deferredimport import deprecated

# BBB
from AccessControl.owner import EditUnowned
from AccessControl.owner import EmergencyUserCannotOwn
from AccessControl.owner import UnownableOwner
from AccessControl.owner import absattr
from AccessControl.owner import ownableFilter
from AccessControl.owner import 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',
)
11 changes: 0 additions & 11 deletions src/AccessControl/Permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"""Constant definitions for built-in Zope permissions
"""

from zope.deferredimport import deprecated


access_contents_information = 'Access contents information'
add_database_methods = 'Add Database Methods'
add_documents_images_and_files = 'Add Documents, Images, and Files'
Expand Down Expand Up @@ -67,11 +64,3 @@
webdav_manage_locks = 'Manage WebDAV Locks'
webdav_unlock_items = 'WebDAV Unlock items'
new_loc = 'DocumentTemplate.permissions'

deprecated(
"This permission has moved to %s, please import from there. "
"This backward compatibility shim will be removed in AccessControl "
"version 5." % new_loc,
change_dtml_documents='%s:change_dtml_documents' % new_loc,
change_dtml_methods='%s:change_dtml_methods' % new_loc,
)
12 changes: 0 additions & 12 deletions src/AccessControl/Role.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"""Access control support
"""

from zope.deferredimport import deprecated

# BBB
from AccessControl.rolemanager import DEFAULTMAXLISTUSERS
from AccessControl.rolemanager import _isBeingUsedAsAMethod
Expand All @@ -26,13 +24,3 @@
from AccessControl.rolemanager import instance_attrs
from AccessControl.rolemanager import instance_dict
from AccessControl.rolemanager import 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',
)
13 changes: 0 additions & 13 deletions src/AccessControl/User.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"""Access control package.
"""

from zope.deferredimport import deprecated

# BBB
from AccessControl.users import BasicUser
from AccessControl.users import NullUnrestrictedUser
Expand All @@ -36,14 +34,3 @@


from AccessControl.users import UnrestrictedUser # noqa isort:skip


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.",
BasicUserFolder='OFS.userfolder:BasicUserFolder',
manage_addUserFolder='OFS.userfolder:manage_addUserFolder',
UserFolder='OFS.userfolder:UserFolder',
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Unit tests for AccessControl.Owned
"""Unit tests for AccessControl.owner
"""

import unittest
Expand Down
File renamed without changes.

0 comments on commit 0a3eaf7

Please sign in to comment.