From 2626aa49ae94ba804b39992cab9743e7bb930040 Mon Sep 17 00:00:00 2001 From: "T. Kim Nguyen" Date: Tue, 14 Aug 2018 14:34:12 -0500 Subject: [PATCH] fix typos in doc strings (#409) * fix typos in doc strings * Update CHANGES.rst --- CHANGES.rst | 3 +++ src/plone/api/user.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 464a9d9d..5c80d6b8 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -17,6 +17,9 @@ Bug fixes: - Removed allow-hosts from base.cfg, so we can use the new pypi warehouse. Refs https://github.com/plone/plone.api/issues/403 [jaroel] + +- fix typos in doc strings + [tkimnguyen] 1.8.4 (2018-04-24) diff --git a/src/plone/api/user.py b/src/plone/api/user.py index 3b78c3d9..0deb7aba 100644 --- a/src/plone/api/user.py +++ b/src/plone/api/user.py @@ -154,7 +154,7 @@ def get_users(groupname=None, group=None): :param group: Group of which to return users. If set, only return users that are member of this group. :type group: GroupData object - :returns: All users (optionlly filtered by group) + :returns: All users (optionally filtered by group) :rtype: List of MemberData objects :Example: :ref:`user_get_all_users_example`, :ref:`user_get_groups_users_example` @@ -306,7 +306,7 @@ def get_permissions(username=None, user=None, obj=None): @mutually_exclusive_parameters('username', 'user') def has_permission(permission, username=None, user=None, obj=None): - """Check whether this user has the given permssion. + """Check whether this user has the given permission. Arguments ``username`` and ``user`` are mutually exclusive. You can either set one or the other, but not both. if ``username`` and