From 0a7b3326b4cf408347e40aea7d1c96dc0072249d Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Thu, 10 Mar 2022 10:50:53 +0000 Subject: Fix a number of typos --- docs/api/checker.rst | 12 ++++++------ src/zope/security/_zope_security_checker.c | 6 +++--- src/zope/security/checker.py | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/api/checker.rst b/docs/api/checker.rst index 7c62d5c..eb094ee 100644 --- a/docs/api/checker.rst +++ b/docs/api/checker.rst @@ -65,7 +65,7 @@ name and permission: 'baz': 'zope.security.metaconfigure.test', 'foo': 'zope.security.metaconfigure.test'} -The allow directive creates actions for each named defined +The allow directive creates actions for each name defined directly, or via interface: .. doctest:: @@ -125,7 +125,7 @@ directly, or via interface: 'testmodule', 'y')}] -The provide directive creates actions for each named defined +The provide directive creates actions for each name defined directly, or via interface: .. doctest:: @@ -234,7 +234,7 @@ Rocks are immutable, non-callable objects without interesting methods. They >>> type(ProxyFactory(True)) is type(True) True -Datetime-reltatd instances are rocks, too: +Datetime-related instances are rocks, too: .. doctest:: @@ -573,7 +573,7 @@ we can do everything we expect to be able to do with proxied sets. False Note that you can't compare proxied sets with other proxied sets -due a limitaion in the set comparison functions which won't work +due to a limitation in the set comparison functions which won't work with any kind of proxy. .. doctest:: @@ -753,7 +753,7 @@ we can do everything we expect to be able to do with proxied frozensets. False Note that you can't compare proxied sets with other proxied sets -due a limitaion in the frozenset comparison functions which won't work +due to a limitation in the frozenset comparison functions which won't work with any kind of proxy. .. doctest:: @@ -998,7 +998,7 @@ We can still use interfaces though proxies: True -abstract Base Classes +Abstract Base Classes ~~~~~~~~~~~~~~~~~~~~~ We work with the ABCMeta meta class: diff --git a/src/zope/security/_zope_security_checker.c b/src/zope/security/_zope_security_checker.c index 82edbbf..63b0548 100644 --- a/src/zope/security/_zope_security_checker.c +++ b/src/zope/security/_zope_security_checker.c @@ -346,11 +346,11 @@ static struct PyMethodDef Checker_methods[] = { "setattr_permission_id(name) -- Return the permission neded to set the name" }, {"check_getattr", (PyCFunction)Checker_check, METH_VARARGS, - "check_getattr(object, name) -- Check whether a getattr is allowes"}, + "check_getattr(object, name) -- Check whether a getattr is allowed"}, {"check_setattr", (PyCFunction)Checker_check_setattr, METH_VARARGS, - "check_setattr(object, name) -- Check whether a setattr is allowes"}, + "check_setattr(object, name) -- Check whether a setattr is allowed"}, {"check", (PyCFunction)Checker_check, METH_VARARGS, - "check(object, opname) -- Check whether an operation is allowes"}, + "check(object, opname) -- Check whether an operation is allowed"}, {"proxy", (PyCFunction)Checker_proxy, METH_O, "proxy(object) -- Security-proxy an object"}, diff --git a/src/zope/security/checker.py b/src/zope/security/checker.py index fe570d1..c337a18 100644 --- a/src/zope/security/checker.py +++ b/src/zope/security/checker.py @@ -535,7 +535,7 @@ class CombinedChecker(Checker): +====================+====================+=====================================+ | ok | anything | ok (checker 2 never called) | +--------------------+--------------------+-------------------------------------+ - | Unathorized | ok | ok | + | Unauthorized | ok | ok | +--------------------+--------------------+-------------------------------------+ | Unauthorized | Unauthorized | Unauthorized | +--------------------+--------------------+-------------------------------------+ -- cgit v1.2.1