From c9de5a7d411f178cf6d1b1549aadddc412be2689 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 1 Sep 2022 20:39:11 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - docs/cookbook.rst - docs/extending.rst - docs/releasenotes/v2.0.0.rst - docs/tutorial.rst - restless/resources.py Fixes: - Should read `overriding` rather than `overridding`. - Should read `output` rather than `ouput`. - Should read `grained` rather than `graned`. - Should read `business` rather than `busines`. Signed-off-by: Tim Gates --- docs/cookbook.rst | 2 +- docs/extending.rst | 2 +- docs/releasenotes/v2.0.0.rst | 2 +- docs/tutorial.rst | 2 +- restless/resources.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/cookbook.rst b/docs/cookbook.rst index 9798646..1a2be7f 100644 --- a/docs/cookbook.rst +++ b/docs/cookbook.rst @@ -18,7 +18,7 @@ do something like:: def is_authenticated(self): return self.request.user.is_authenticated() -If you need a more fine graned authentication you could check your current endpoint and do something like that:: +If you need a more fine grained authentication you could check your current endpoint and do something like that:: class MyResource(DjangoResource): def is_authenticated(self): diff --git a/docs/extending.rst b/docs/extending.rst index e6d4c75..998e0f2 100644 --- a/docs/extending.rst +++ b/docs/extending.rst @@ -146,7 +146,7 @@ in your browser & get a JSON schema view! Customizing Data Output ======================= -There are four approaches to customizing your data ouput. +There are four approaches to customizing your data output. #. The built-in ``Preparer/FieldsPreparer`` (simple) #. The included ``SubPreparer/CollectionSubPreparer`` (slightly more complex) diff --git a/docs/releasenotes/v2.0.0.rst b/docs/releasenotes/v2.0.0.rst index 82ea8f4..44f6ecc 100644 --- a/docs/releasenotes/v2.0.0.rst +++ b/docs/releasenotes/v2.0.0.rst @@ -58,7 +58,7 @@ Porting is simply 1.adding an import & 2. changing the assignment.:: Serialization ~~~~~~~~~~~~~ -Serialization is even easier. If you performed no overridding, there's nothing +Serialization is even easier. If you performed no overriding, there's nothing to update. You simply get the new ``JSONSerializer`` object automatically. If you were overriding either ``raw_deserialize`` or ``raw_serialize``, you diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 77bd56c..35e3949 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -30,7 +30,7 @@ ORM/data source. If you can import a module to work with the data & can represent it as JSON, Restless can work with it. Restless is small & easy to keep in your head. Common usages involve -overridding just a few easily remembered method names. Total source code is +overriding just a few easily remembered method names. Total source code is a under a thousand lines of code. Restless supports Python 3 **first**, but has backward-compatibility to work diff --git a/restless/resources.py b/restless/resources.py index 95a742a..1e65672 100644 --- a/restless/resources.py +++ b/restless/resources.py @@ -551,7 +551,7 @@ def update_list(self, *args, **kwargs): """ Updates the entire collection for a PUT on a list-style endpoint. - Uncommonly implemented due to the complexity & (varying) busines-logic + Uncommonly implemented due to the complexity & (varying) business-logic involved. **MUST BE OVERRIDDEN BY THE USER** - By default, this returns