summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2022-03-10 12:33:21 +0000
committerGitHub <noreply@github.com>2022-03-10 12:33:21 +0000
commite7cb2fbb8bdbe839a0d5b097cfe16a208fa9b17b (patch)
treeb4225a00de051c3461539c6c635cc3ae343d5ac2
parentfca22bb84b4eaf11875a7a7207fb0c1d9be36d39 (diff)
parent0a7b3326b4cf408347e40aea7d1c96dc0072249d (diff)
downloadzope-security-e7cb2fbb8bdbe839a0d5b097cfe16a208fa9b17b.tar.gz
Merge pull request #82 from cjwatson/typos
Fix a number of typos
-rw-r--r--docs/api/checker.rst12
-rw-r--r--src/zope/security/_zope_security_checker.c6
-rw-r--r--src/zope/security/checker.py2
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 |
+--------------------+--------------------+-------------------------------------+