From b59ab0432ce3e1cd93431a5bff52cd27102b2816 Mon Sep 17 00:00:00 2001 From: Nico Zanferrari Date: Sun, 7 Jul 2024 21:47:42 +0200 Subject: [PATCH] Small typos --- docs/chapter-06.rst | 4 ++-- docs/chapter-07.rst | 4 ++-- docs/chapter-14.rst | 7 ++++--- docs/spelling_wordlist_en.txt | 2 ++ 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/chapter-06.rst b/docs/chapter-06.rst index fa70b838..30ea0b7e 100644 --- a/docs/chapter-06.rst +++ b/docs/chapter-06.rst @@ -224,7 +224,7 @@ If the `T` fixture is to be used from inside a template you may want to pass it def index(): return dict(T=T) -Or perahps inject (same effect as above) +Or perhaps inject (same effect as above) .. code:: python @@ -310,7 +310,7 @@ you have to redefine the select method for the T instance: T.on_request = lambda *_: T.local.__dict__.update(tag="it", language=T.languages["it"]) -This is to be done outside any action and will apply to all actions. Action will still need todeclare +This is to be done outside any action and will apply to all actions. Action will still need to declare `action.uses(T)` else the behavior is undefined. diff --git a/docs/chapter-07.rst b/docs/chapter-07.rst index 5c38d2fd..f979e3dc 100644 --- a/docs/chapter-07.rst +++ b/docs/chapter-07.rst @@ -581,7 +581,7 @@ Migrations_ for details). By default it's automatically set within py4web on the folder of the database itself, but you have to specify it when using DAL outside py4web. Note that for SQLite databases it's normally necessary, -otherwise you'll implictly choose an in memory database (where folder and +otherwise you'll implicitly choose an in memory database (where folder and migrations don't have any sense). So these constructors have the same meaning: .. code:: python @@ -2765,7 +2765,7 @@ Caching selects The select method also takes a ``cache`` argument, which defaults to None. For caching purposes, it should be set to a tuple where the first element is the cache function with signature `(key, callback, expiration)` -(ror example ``cache.get`` assuming ``cache`` +(for example ``cache.get`` assuming ``cache`` is an instance of the py4web cache object), and the second element is the expiration time in seconds. diff --git a/docs/chapter-14.rst b/docs/chapter-14.rst index 483f4fd5..a80d87fd 100644 --- a/docs/chapter-14.rst +++ b/docs/chapter-14.rst @@ -589,9 +589,9 @@ behave differently. Grids with checkboxes --------------------- -While the grid, per se, does not support checkboxes, you can use custom columns to add one or more columns of checboxes. +While the grid, per se, does not support checkboxes, you can use custom columns to add one or more columns of checkboxes. You can also add the helpers logic (the grid uses helpers to generate HTML) to wrap it in a ``
`` and add one -or more submit bottons. You can then add logic to process the selected rows when the button is selected. For example: +or more submit buttons. You can then add logic to process the selected rows when the button is selected. For example: .. code:: python @@ -619,4 +619,5 @@ or more submit bottons. You can then add logic to process the selected rows when _action=request.url)] return locals() -Notice in the above example ``request.POST.get("selected_id")`` can be a single ID (if one selected) or a list of IDs (if more than one elsected). +Notice in the above example ``request.POST.get("selected_id")`` can be a single ID (if one selected) or a list of IDs (if more than one +is selected). diff --git a/docs/spelling_wordlist_en.txt b/docs/spelling_wordlist_en.txt index 2f41f48a..558678ed 100644 --- a/docs/spelling_wordlist_en.txt +++ b/docs/spelling_wordlist_en.txt @@ -131,6 +131,7 @@ lib libs limitby localhost +longhash lookups mailto Makefile @@ -252,6 +253,7 @@ Teradata teredo textarea tracebacks +Twilio txt ual un